1fe5f4f206ed1d7b663effdd5a36c6788a291920
[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 charmd
11
12 charmrun-silent: charmrun-notify
13
14 charmrun-notify: charmrun.c $(INCLUDED)
15         $(CHARMC) -c -seq -DSILENT charmrun.c
16         $(CHARMC) -cp $(BIN) -seq -o charmrun-silent charmrun.o
17         $(CHARMC) -c -seq -DNOTIFY charmrun.c
18         $(CHARMC) -cp $(BIN) -seq -o charmrun-notify charmrun.o
19         (cd ..; CHARMINC=.; . ./conv-config.sh; cp ../bin/charmrun-notify$$CMK_POST_EXE ../bin/charmrun$$CMK_POST_EXE)
20
21 charmd: charmd_faceless
22
23 charmd_faceless: daemon.c daemon.h ../sockRoutines-seq.o
24         $(CHARMC) -cp $(BIN) -seq daemon.c ../sockRoutines-seq.o -o charmd
25         $(CHARMC) -cp $(BIN) -DFACELESS -seq daemon.c ../sockRoutines-seq.o -o charmd_faceless;
26
27 clean:
28         rm -f *.o charmrun charmrun-notify charmrun-silent
29         rm -f charmd charmd_faceless