blob: cde86cf75f617f3c43fcb1e126882bcbc55ad62d (
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
29
30
31
32
33
34
35
36
37
38
39
40
|
DIR=.
include Makefile_base
main: load main.o rt.lib
@./load c main ar/arch.a `cat rt.lib`
main.o: compile main.c main.h myflag.h
@./compile main.c
myflag.h: testflag choose flags/myflag.h1 flags/myflag.h2
@./testflag MY_FLAG lib/mylib.h > test.c
@./choose clr test flags/myflag.h1 flags/myflag.h2 > myflag.h
@rm test.c
rt.lib: compile load flags/try_clock_gettime.c
@( ( ./compile flags/try_clock_gettime.c && ./load -c try_clock_gettime ) \
>/dev/null 2>&1 && exit 0 || echo "-lrt" ) > rt.lib
# HIGH LEVEL SPECIFIC TARGETS
SUBDIR=lib ar
arch: buildarch
-@./buildarch ${SUBDIR}
build: buildstd main
doc : doxy_conf
@echo -e "$(CYAN)calling doxygen$(NORM)"
@doxygen doxy_conf
@echo -e "$(CYAN)done.$(NORM)"
clean: cleanstd
@if [ -f main ] ; then rm main; fi
@if [ -f myflag.h ] ; then rm myflag.h; fi
@if [ -f rt.lib ] ; then rm rt.lib; fi
@if [ -f try_clock_gettime ] ; then rm try_clock_gettime; fi
|