summaryrefslogtreecommitdiff
path: root/titan/Makefile
blob: 2aeebb9d8c4b3d549c437be49929653ad3ee8879 (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
28
TYPE_MODULES:=General Osmocom MNCC PCUIF

TYPE_CC=$(TYPE_MODULES:%=%_Types.cc)
TYPE_HH=$(TYPE_MODULES:%=%_Types.hh)
GENERATED=$(TYPE_CC) $(TYPE_HH)

OBJS=General_Types.o Osmocom_Types.o hello.o
OBJS+=MNCC_Types.o MNCC_EncDec.o
OBJS+=PCUIF_Types.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: compile titan.a

$(GENERATED):
	ttcn3_compiler -D *.ttcn

titan.a: $(OBJS)
	$(AR) r $@ $^

%.o: %.cc
	$(CXX) $(CXXFLAGS) -c -o $@ $^

.PHONY: clean
clean:
	@rm -f titan.a $(OBJS) $(GENERATED)
personal git repositories of Harald Welte. Your mileage may vary