source: trunk/src/archiving/archman/makefile.unix @ 7912

Revision 7912, 813 bytes checked in by baker, 6 months ago (diff)

finish standardizing archiving makefiles

Line 
1LINUX_FLAGS    = -lpthread
2SOLARIS_FLAGS  = -lnsl -lsocket -lrt -lpthread
3SPECIFIC_FLAGS = $($(PLATFORM)_FLAGS)
4
5CFLAGS = $(GLOBALFLAGS) -Ilibbgs
6
7B = $(EW_HOME)/$(EW_VERSION)/bin
8L = $(EW_HOME)/$(EW_VERSION)/lib
9
10APP = archman
11
12OBJS = $(APP).o
13
14EW_LIBS = \
15        $L/socket_ew.o \
16        $L/socket_ew_common.o \
17        $L/swap.o \
18        -L$L -lbgs -lew_mt
19
20$B/$(APP): $(OBJS) $L/libbgs.a
21        $(CC) -o $@ $(CFLAGS) $(OBJS) $(EW_LIBS) $(SPECIFIC_FLAGS)
22
23$L/libbgs.a:
24        @cd libbgs && \
25                echo ---------- ; \
26                echo Making $(@F) in: `pwd` ; \
27                $(MAKE) -f makefile.unix
28
29
30# Clean-up rules
31clean:  clean/archman \
32        clean/libbgs
33
34clean/archman: PHONY
35        -$(RM) a.out core *.o *.obj *% *~
36
37clean/libbgs: PHONY
38        -@cd libbgs && \
39                echo Cleaning in: `pwd` ; \
40                $(MAKE) -f makefile.unix clean
41
42clean_bin: PHONY
43        -$(RM) $B/$(APP) $B/$(APP).exe
44
45PHONY:
Note: See TracBrowser for help on using the repository browser.