Mercurial > hg > th-libs
comparison Makefile @ 254:3d1e2af4e4e6
Start of a very simplistic unit test suite. Initially handling just printf()
style functions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 16 Feb 2016 21:28:00 +0200 |
parents | |
children | 3f05f6fb5dfd |
comparison
equal
deleted
inserted
replaced
253:d1b4f4ea4715 | 254:3d1e2af4e4e6 |
---|---|
1 # | |
2 # Configuration settings for Linux and generic UNIX | |
3 # See other Makefile.* files for more options. | |
4 # | |
5 | |
6 # C-compiler, flags and linker flags | |
7 CC ?= gcc | |
8 AR ?= ar | |
9 RANLIB ?= ranlib | |
10 INSTALL ?= install | |
11 | |
12 CFLAGS += -DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_CONFIG_H=1 -I. -DTH_USE_INTERNAL_SPRINTF=1 | |
13 LDFLAGS += | |
14 | |
15 #CFLAGS += -DHAVE_STDINT_H | |
16 #CFLAGS += -DHAVE_SYS_TYPES_H | |
17 | |
18 # Miscellaneous | |
19 BINPATH=./ | |
20 OBJPATH=obj/unix/ | |
21 EXEEXT= | |
22 | |
23 | |
24 ### | |
25 ### Stuff | |
26 ### | |
27 ENDIANCHK_BIN=$(BINPATH)endianchk$(EXEEXT) | |
28 NOINST_TARGETS += $(ENDIANCHK_BIN) config.h | |
29 | |
30 include Makefile.gen | |
31 | |
32 | |
33 $(ENDIANCHK_BIN): endianchk.c | |
34 $(CC) $(CFLAGS) -o $@ $+ | |
35 | |
36 config.h: $(ENDIANCHK_BIN) | |
37 $(ENDIANCHK_BIN) > $@ |