~ubuntu-branches/debian/experimental/ion/experimental

« back to all changes in this revision

Viewing changes to ici/i86-darwin/Makefile

  • Committer: Package Import Robot
  • Author(s): Leo Iannacone
  • Date: 2012-02-01 09:46:31 UTC
  • Revision ID: package-import@ubuntu.com-20120201094631-qpfwehc1b7ftkjgx
Tags: upstream-2.5.3~dfsg1
ImportĀ upstreamĀ versionĀ 2.5.3~dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SRC = ../library
 
2
INCL = ../include
 
3
TEST = ../test
 
4
UTILS = ../utils
 
5
DAEMON = ../daemon
 
6
SDR = ../sdr
 
7
 
 
8
# OPT = -O -Dlinux
 
9
OPT = -g -Wall -Werror -Dunix -Ddarwin
 
10
CC = gcc $(OPT) -I$(SRC) -I$(TEST) -I$(SDR) -I$(INCL)
 
11
LDFLAGS = -dynamiclib -undefined dynamic_lookup
 
12
LD = gcc $(LDFLAGS)
 
13
 
 
14
LIBICIOBJS = \
 
15
        llcv.o \
 
16
        platform.o \
 
17
        platform_sm.o \
 
18
        memmgr.o \
 
19
        lyst.o \
 
20
        psm.o \
 
21
        smlist.o \
 
22
        sptrace.o \
 
23
        ion.o \
 
24
        rfx.o \
 
25
        ionsec.o \
 
26
        zco.o \
 
27
        sdrxn.o \
 
28
        sdrmgt.o \
 
29
        sdrstring.o \
 
30
        sdrlist.o \
 
31
        sdrtable.o \
 
32
        sdrhash.o \
 
33
        sdrcatlg.o
 
34
 
 
35
PUBINCLS = \
 
36
        $(INCL)/llcv.h \
 
37
        $(INCL)/platform.h \
 
38
        $(INCL)/platform_sm.h \
 
39
        $(INCL)/memmgr.h \
 
40
        $(INCL)/lyst.h \
 
41
        $(INCL)/psm.h \
 
42
        $(INCL)/smlist.h \
 
43
        $(INCL)/sptrace.h \
 
44
        $(INCL)/ion.h \
 
45
        $(INCL)/rfx.h \
 
46
        $(INCL)/ionsec.h \
 
47
        $(INCL)/zco.h \
 
48
        $(INCL)/sdrxn.h \
 
49
        $(INCL)/sdrmgt.h \
 
50
        $(INCL)/sdrstring.h \
 
51
        $(INCL)/sdrlist.h \
 
52
        $(INCL)/sdrtable.h \
 
53
        $(INCL)/sdrhash.h \
 
54
        $(INCL)/sdr.h
 
55
 
 
56
ICIINCLS = \
 
57
        $(SRC)/lystP.h \
 
58
        $(SDR)/sdrP.h
 
59
 
 
60
UTILITIES = sdrwatch psmwatch ionadmin ionsecadmin sdrmend
 
61
 
 
62
TESTPGMS = file2sm sm2file file2sdr sdr2file psmshell smlistsh owltsim owlttb
 
63
 
 
64
ALL = check libici.so rfxclock $(UTILITIES) $(TESTPGMS)
 
65
 
 
66
all:            $(ALL)
 
67
 
 
68
check:          $(ICIINCLS) $(PUBINCLS)
 
69
                rm -f *.o
 
70
                touch check
 
71
 
 
72
clean:
 
73
                rm -f *.o
 
74
                rm -f $(ALL)
 
75
                rm -f ./lib/*
 
76
                rm -f ./bin/*
 
77
 
 
78
install:
 
79
                cp ../include/*.h $(ROOT)/include
 
80
                cp lib/* $(ROOT)/lib
 
81
                cp bin/* $(ROOT)/bin
 
82
 
 
83
#       -       -       Utility executables     -       -       -       -
 
84
 
 
85
sdrwatch:       sdrwatch.o libici.so
 
86
                $(CC) -o sdrwatch sdrwatch.o -L./lib -lici -lpthread
 
87
                cp sdrwatch ./bin
 
88
 
 
89
sdrmend:        sdrmend.o libici.so
 
90
                $(CC) -o sdrmend sdrmend.o -L./lib -lici -lpthread
 
91
                cp sdrmend ./bin
 
92
 
 
93
psmwatch:       psmwatch.o libici.so
 
94
                $(CC) -o psmwatch psmwatch.o -L./lib -lici -lpthread
 
95
                cp psmwatch ./bin
 
96
 
 
97
ionadmin:       ionadmin.o libici.so
 
98
                $(CC) -o ionadmin ionadmin.o -L./lib -lici -lpthread
 
99
                cp ionadmin ./bin
 
100
 
 
101
ionsecadmin:    ionsecadmin.o libici.so
 
102
                $(CC) -o ionsecadmin ionsecadmin.o -L./lib -lici -lpthread
 
103
                cp ionsecadmin ./bin
 
104
 
 
105
#       -       -       Test executables        -       -       -       -
 
106
 
 
107
psmshell:       psmshell.o libici.so
 
108
                $(CC) -o psmshell psmshell.o -L./lib -lici -lpthread
 
109
                cp psmshell ./bin
 
110
 
 
111
smlistsh:       smlistsh.o libici.so
 
112
                $(CC) -o smlistsh smlistsh.o -L./lib -lici -lpthread
 
113
                cp smlistsh ./bin
 
114
 
 
115
file2sm:        file2sm.o libici.so
 
116
                $(CC) -I. -o file2sm file2sm.o -L./lib -lici -lpthread
 
117
                cp file2sm ./bin
 
118
 
 
119
sm2file:        sm2file.o libici.so
 
120
                $(CC) -I. -o sm2file sm2file.o -L./lib -lici -lpthread
 
121
                cp sm2file ./bin
 
122
 
 
123
file2sdr:       file2sdr.o libici.so
 
124
                $(CC) -I. -o file2sdr file2sdr.o -L./lib -lici -lpthread
 
125
                cp file2sdr ./bin
 
126
 
 
127
sdr2file:       sdr2file.o libici.so
 
128
                $(CC) -o sdr2file sdr2file.o -L./lib -lici -lpthread
 
129
                cp sdr2file ./bin
 
130
 
 
131
owltsim:        owltsim.o libici.so
 
132
                $(CC) -o owltsim owltsim.o -L./lib -lici -lpthread
 
133
                cp owltsim ./bin
 
134
 
 
135
owlttb:         owlttb.o libici.so
 
136
                $(CC) -o owlttb owlttb.o -L./lib -lici -lpthread
 
137
                cp owlttb ./bin
 
138
 
 
139
#       -       -       Daemon executable       -       -       -       -
 
140
 
 
141
rfxclock:       rfxclock.o libici.so
 
142
                $(CC) -I. -o rfxclock rfxclock.o -L./lib -lici -lpthread
 
143
                cp rfxclock ./bin
 
144
 
 
145
#       -       -       Libraries       -       -       -       -       -
 
146
 
 
147
libici.so:      $(LIBICIOBJS)
 
148
                $(LD) -o libici.so $(LIBICIOBJS)
 
149
                cp libici.so ./lib
 
150
 
 
151
#       -       -       Object modules  -       -       -       -       -
 
152
 
 
153
%.o:            $(SRC)/%.c
 
154
                $(CC) -c $<
 
155
 
 
156
%.o:            $(SDR)/%.c
 
157
                $(CC) -c $<
 
158
 
 
159
%.o:            $(UTILS)/%.c
 
160
                $(CC) -c $<
 
161
 
 
162
%.o:            $(DAEMON)/%.c
 
163
                $(CC) -c $<
 
164
 
 
165
%.o:            $(TEST)/%.c
 
166
                $(CC) -c $<