summaryrefslogtreecommitdiff
path: root/titan/Makefile
blob: 4feedc8341474becc476902d9ebee9aba99a3d5b (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

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 *.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