forked from creotech-instruments/mxli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProject.make
34 lines (24 loc) · 787 Bytes
/
Project.make
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
# (C) Marc Prager, 2010
# Project: c-linux, i386
#
# tool configuration
PROJECT_MAKEFILE:=$(word $(words ${MAKEFILE_LIST}), ${MAKEFILE_LIST})
PROJECT_DIR:=$(subst /SUFFIX,,$(dir ${PROJECT_MAKEFILE})SUFFIX)
SLICE:=${PROJECT_DIR}/util/slice.pl
# preprocessor
CPPFLAGS+=${LIB_CPPFLAGS}
# C compiler, -Wstrict-aliasing=2 is quite strict
CFLAGS:= -Wall -std=gnu99 -Wno-parentheses -g -Wno-unused-variable
# ${LD} ${LIB_LDFLAGS} ${LDFLAGS} -T${LDSCRIPT} -o $@ $^ ${LIB_LOADLIBES} ${LOADLIBES} ${LIB_LD_LIBS} ${LDLIBS} -lgcc
LDLIBS:=${LIB_LOADLIBES}
LDFLAGS:=${LIB_LDFLAGS}
# archiver
AR:=ar
# source file slicer (Perl script)
SLICE:=${PROJECT_DIR}/util/slice.pl
# *.h *.s headers from *.def
DEF2HDR:=${PROJECT_DIR}/util/def2hdr.pl
%.h: %.def
${DEF2HDR} $<
%.s: %.def
${DEF2HDR} $<