a557746ddf0074bb52299b916ceb22746fa65a37
[charm.git] / src / arch / net / charmrun / Makefile
1 BIN=../../bin
2 CHARMC=$(BIN)/charmc $(OPTS)
3
4 SHELL=/bin/sh
5
6 INCLUDED=../conv-mach.h ../conv-mach-opt.h \
7         ../ccs-server.c ../ccs-server.h ../ccs-auth.c ../ccs-auth.h \
8         ../sockRoutines.c ../sockRoutines.h
9
10 all: charmrun-silent charmrun-notify charmd charmd-faceless post-config
11
12 charmrun-silent.o: charmrun.c $(INCLUDED)
13         $(CHARMC) -seq -DSILENT -c charmrun.c -o charmrun-silent.o
14 charmrun-silent: charmrun-silent.o
15         $(CHARMC) -cp $(BIN) charmrun-silent.o -o charmrun-silent
16 charmrun-notify.o: charmrun.c $(INCLUDED)
17         $(CHARMC) -seq -DNOTIFY -c charmrun.c -o charmrun-notify.o
18 charmrun-notify: charmrun-notify.o
19         $(CHARMC) -cp $(BIN) charmrun-notify.o -o charmrun-notify
20 post-config: charmrun-notify charmrun-silent
21         (cd ..; CHARMINC=.; . ./conv-config.sh; cp ../bin/charmrun-notify$$CMK_POST_EXE ../bin/charmrun$$CMK_POST_EXE)
22
23 daemon.o: daemon.c daemon.h
24         $(CHARMC) -seq -c daemon.c -o daemon.o
25 daemon-faceless.o: daemon.c daemon.h
26         $(CHARMC) -DFACELESS -c daemon.c -o daemon-faceless.o
27
28 charmd: daemon.o ../sockRoutines-seq.o
29         $(CHARMC) -cp $(BIN) -seq daemon.o ../sockRoutines-seq.o -o charmd
30 charmd-faceless: daemon-faceless.o ../sockRoutines-seq.o
31         $(CHARMC) -cp $(BIN) daemon-faceless.o ../sockRoutines-seq.o -o charmd_faceless;
32
33 clean:
34         rm -f *.o charmrun charmrun-notify charmrun-silent
35         rm -f charmd charmd_faceless