Debian Codegraph @

debian/Makefile

raw symbols SCIP
1 # use autoopts-config to determine
2 # 1) the locatation autogen (autoopts-config --autogen)
3 # 2) the data dir for autogen (autoopts-config --pkgdatadir)
4 # 3) the include dir for autogen (autoopts-config --cflags)
5 # 4) the lib dir for autogen (autoopts-config --libs)
6
7 AUTOGEN_PROGRAM=$(shell autoopts-config --autogen)
8 AUTOGEN_DATADIR=$(shell autoopts-config --pkgdatadir)
9 AUTOGEN_FLAGS=-L$(AUTOGEN_DATADIR)
10
11 AUTOGEN_CFLAGS=$(shell autoopts-config --cflags)
12 AUTOGEN_LDFLAGS=$(shell autoopts-config --libs)
13
14 CFLAGS+=$(AUTOGEN_CFLAGS) -DTEST_CHECK_OPTS
15 LDFLAGS+=$(AUTOGEN_LDFLAGS)
16
17 .PHONY: build
18 build: main
19
20 .PHONY: clean
21 clean:
22 rm -f *.o main checkopt.c checkopt.h
23
24 main: checkopt.c main.c
25 checkopt.c checkopt.h: checkopt.def
26
27 # additional rules
28 %.c: %.def
29 $(AUTOGEN_PROGRAM) $(AUTOGEN_FLAGS) $^