comparison Makefile @ 422:c89f7aa4ced8

Cleanup Makefile.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 09 Mar 2016 16:14:47 +0200
parents d8702bbab84f
children 0a2f32b8a26e
comparison
equal deleted inserted replaced
421:d8702bbab84f 422:c89f7aa4ced8
1 # 1 #
2 # Configuration settings for Linux and generic UNIX 2 # Configuration settings for Linux and generic UNIX
3 # See other Makefile.* files for more options. 3 # See other Makefile.* files for more options.
4 # 4 #
5
6 # Miscellaneous
7 PREFIX = /usr/local
8 BINPATH = ./
9 OBJPATH = obj/unix/
10 EXEEXT =
5 11
6 # C-compiler, flags and linker flags 12 # C-compiler, flags and linker flags
7 CC ?= gcc 13 CC ?= gcc
8 AR ?= ar 14 AR ?= ar
9 RANLIB ?= ranlib 15 RANLIB ?= ranlib
15 CFLAGS += -DHAVE_STRING_H 21 CFLAGS += -DHAVE_STRING_H
16 CFLAGS += -DHAVE_STDINT_H 22 CFLAGS += -DHAVE_STDINT_H
17 #CFLAGS += -DHAVE_SYS_TYPES_H 23 #CFLAGS += -DHAVE_SYS_TYPES_H
18 CFLAGS += -DHAVE_INTTYPES_H 24 CFLAGS += -DHAVE_INTTYPES_H
19 25
20 # Miscellaneous
21 BINPATH=./
22 OBJPATH=obj/unix/
23 EXEEXT=
24
25 26
26 ### 27 ###
27 ### Stuff 28 ### Unix targets
28 ### 29 ###
29 ENDIANCHK_BIN = $(BINPATH)endianchk$(EXEEXT) 30 ENDIANCHK_BIN = $(BINPATH)endianchk$(EXEEXT)
30 NOINST_TARGETS += $(ENDIANCHK_BIN) config.h 31 NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
31 THLIBS_DEP += config.h 32 THLIBS_DEP += config.h
32 33