source: trunk/src/data_sources/psnadsend/makefile.unix @ 7918

Revision 7918, 1.3 KB checked in by baker, 6 months ago (diff)

finish standardizing data_sources makefiles

Line 
1LINUX_FLAGS    = -lpthread
2SOLARIS_FLAGS  = -lnsl -lsocket -lrt -lpthread
3SPECIFIC_FLAGS = $($(PLATFORM)_FLAGS)
4
5CFLAGS   = $(GLOBALFLAGS)
6CXXFLAGS = $(CFLAGS)
7
8B = $(EW_HOME)/$(EW_VERSION)/bin
9L = $(EW_HOME)/$(EW_VERSION)/lib
10D = PsnAdBoard
11
12APP = psnadsend
13
14OBJS = \
15        PsnAdSend.o \
16        PsnAdUtils.o \
17        filter.o \
18        getconfig.o
19
20AD_LIBS = -LPsnAdBoard -lpsn_ew
21
22EW_LIBS = \
23        $L/getutil.o \
24        $L/kom.o \
25        $L/logit_mt.o \
26        $L/sleep_ew.o \
27        $L/time_ew.o \
28        $L/transport.o \
29        -L$L -lew_mt
30
31$B/$(APP): $(OBJS) $D/libpsn_ew.a
32        $(CXX) -o $@ $(CXXFLAGS) $(OBJS) $(AD_LIBS) $(EW_LIBS) $(SPECIFIC_FLAGS)
33
34PsnAdSend.o:    PsnAdSend.cpp  PsnAdSend.h
35PsnAdUtils.o:   PsnAdUtils.cpp PsnAdSend.h
36filter.o:       filter.cpp     PsnAdSend.h
37getconfig.o:    getconfig.cpp  PsnAdSend.h
38
39$D/libpsn_ew.a:
40        @cd PsnAdBoard && \
41                echo ---------- ; \
42                echo Making $@ in: `pwd` ; \
43                $(MAKE) -f makefile.unix
44       
45
46# Clean-up rules
47clean:  clean/here \
48        clean/lib
49
50clean/here: PHONY
51        -$(RM) a.out core *.o *.obj *% *~
52
53clean/lib: PHONY
54        -@cd PsnAdBoard && \
55                echo Cleaning in: `pwd` ; \
56                $(MAKE) -f makefile.unix clean
57
58clean_bin: \
59        clean_bin/here \
60        clean_bin/lib
61
62clean_bin/here: PHONY
63        -$(RM) $B/$(APP) $B/$(APP).exe
64
65clean_bin/lib: PHONY
66        -@cd PsnAdBoard && \
67                echo Cleaning binaries in: `pwd` ; \
68                $(MAKE) -f makefile.unix clean_bin
69
70PHONY:
Note: See TracBrowser for help on using the repository browser.