blob: c1d7dee1cf895319f821d2f72535dc906d426948 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
TYPE_MODULES:=General Osmocom MNCC PCUIF
TYPE_CC=$(TYPE_MODULES:%=%_Types.cc)
TYPE_HH=$(TYPE_MODULES:%=%_Types.hh)
TYPE_OBJS=$(TYPE_MODULES:%=%_Types.o)
GENERATED=$(TYPE_CC) $(TYPE_HH)
OBJS=$(TYPE_OBJS) hello.o MNCC_EncDec.o
CXXFLAGS=-DLINUX -DMAKEDEPEND_RUN -I/usr/include/titan -fPIC
LDFLAGS=-L/usr/lib/titan -fPIC -lttcn3-dynamic
LDFLAGS_STATIC=-L/usr/lib/titan -lttcn3 -lxml2 -lssl -lcrypto
all: titan.a
$(GENERATED):
ttcn3_compiler *.ttcn
titan.a: $(OBJS)
$(AR) r $@ $^
%.o: %.cc
$(CXX) $(CXXFLAGS) -c -o $@ $^
.PHONY: clean
clean:
@rm -f titan.a $(OBJS) $(GENERATED)
|