summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy.zurcher@heraeus.com>2014-01-03 16:43:15 +0100
committerJérémy Zurcher <jeremy.zurcher@heraeus.com>2014-01-03 16:43:15 +0100
commiteb9c210d7412455363153ea2bdc5aca5aaa30384 (patch)
treeb079a409893dbd1c663d51337d903a63864dde3a /Makefile
downloadconfig-parser-master.zip
config-parser-master.tar.gz
Initial commitHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fbf2be2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+DIR=.
+
+include ${DIR}/Makefile_base
+
+main: load main.o config_parser.o
+ @./load c main config_parser.o
+
+config_parser.o: compile config_parser.c config_parser.h
+ @./compile config_parser.c
+
+main.o: compile main.c main.h
+ @./compile main.c
+
+
+# HIGH LEVEL SPECIFIC TARGETS
+
+SUBDIR=
+
+arch: buildarch
+ -@./buildarch ${SUBDIR}
+
+build: main
+ @for I in ${SUBDIR}; do ( echo "$(CYAN)building $I$(NORM)" && cd $I && make && echo "$(CYAN)done.$(NORM)"); done;
+
+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
+ @echo -e "$(CYAN)done.$(NORM)"
+