source: trunk/src/data_exchange/liss/makefile.ux @ 2871

Revision 2871, 2.1 KB checked in by paulf, 13 years ago (diff)

adjusted makefile for MACOSX by removing -lnsl

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#
2#   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
3#   CHECKED IT OUT USING THE COMMAND CHECKOUT.
4#
5#    $Id$
6#
7#    Revision history:
8#     $Log$
9#     Revision 1.3  2007/03/28 16:56:11  paulf
10#     adjusted makefile for MACOSX by removing -lnsl
11#
12#     Revision 1.2  2006/12/30 23:27:31  stefan
13#     David J Scott path fixes
14#
15#     Revision 1.1  2005/07/25 21:05:16  friberg
16#     cloned makefile.lnx for makefile.ux
17#
18#     Revision 1.1  2000/03/05 21:45:59  lombard
19#     Initial revision
20#
21#
22#
23
24
25CFLAGS = $(GLOBALFLAGS) -IDCC_SEED/include -IDCC_SEED/include/seed
26
27B = $(EW_HOME)/$(EW_VERSION)/bin
28L = $(EW_HOME)/$(EW_VERSION)/lib
29
30SL = DCC_SEED/lib
31SEEDLIBS = $(SL)/libdcc_seed.a $(SL)/libsteim123.a $(SL)/libdcc_time.a \
32      $(SL)/libdcc_misc.a
33
34SEEDLD = -L$(SL) -ldcc_seed -lsteim123 -ldcc_time -ldcc_misc
35#SYSLIBS = -lnsl -lpthread -lm
36SYSLIBS = -lpthread -lm
37
38EWLIBS = $L/kom.o $L/getutil.o $L/logit_mt.o $L/socket_ew_common.o\
39           $L/transport.o $L/sleep_ew.o $L/socket_ew.o $L/time_ew.o \
40           $L/threads_ew.o $L/sema_ew.o $L/swap.o $L/mem_circ_queue.o
41
42E2LOBJS = ew2liss.o e2l_procthrd.o e2l_server.o
43
44PROGS = liss2ew ew2liss dumpseed
45
46all: $(PROGS)
47        cp $(PROGS) $B/
48
49
50liss2ew: liss2ew.o $(EWLIBS) $(SEEDLIBS)
51        cc -o liss2ew liss2ew.o $(EWLIBS) $(SEEDLD) $(SYSLIBS)
52
53ew2liss: $(E2LOBJS) $(EWLIBS) $(SEEDLIBS)
54        cc -o ew2liss $(E2LOBJS) $(EWLIBS) $(SEEDLD) $(SYSLIBS)
55
56liss2ew-test: liss2ew-test.o $(EWLIBS) $(SEEDLIBS)
57        cc -o liss2ew-test liss2ew-test.o $(EWLIBS) $(SEEDLD) $(SYSLIBS)
58
59dumpseed: dumpseed.o readseedport.o $(SEEDLIBS)
60        cc -o dumpseed dumpseed.o readseedport.o $(SEEDLD) $(SYSLIBS)
61
62$(SL)/libdcc_seed.a:
63        cd DCC_SEED; make -f makefile.lnx dcc_seed
64
65$(SL)/libsteim123.a:
66        cd DCC_SEED; make -f makefile.lnx steim123
67
68$(SL)/libdcc_time.a:
69        cd DCC_SEED; make -f makefile.lnx dcc_time
70
71$(SL)/libdcc_misc.a:
72        cd DCC_SEED; make -f makefile.lnx dcc_misc
73
74.c.o:
75        $(CC) $(CFLAGS) $(CPPFLAGS) -c  $(OUTPUT_OPTION) $<
76
77
78# Clean-up rules
79clean:
80        rm -f $(PROGS) liss2ew-test a.out core *.o *.obj *% *~
81        cd DCC_SEED; make -f makefile.lnx clean
82        cd $B; rm -f $(PROGS)
83
84clean_bin:
85        rm -f $(PROGS)
86        cd $B; rm -f $(PROGS)
87
Note: See TracBrowser for help on using the repository browser.