Mercurial > hg > sidinfo
view Makefile @ 4:ea774012d049
Fix build system.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 25 Sep 2014 01:54:33 +0300 |
parents | 8e7e08bf7b9e |
children | be3ccb7ca790 |
line wrap: on
line source
# # Configuration settings for Linux and generic UNIX # See other Makefile.* files for more options. # # C-compiler, flags and linker flags CC=gcc AR=ar RANLIB=ranlib CFLAGS=-DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_CONFIG_H=1 -I. LDFLAGS= #CFLAGS += -DHAVE_STDINT_H #CFLAGS += -DHAVE_SYS_TYPES_H # Miscellaneous BINPATH=./ OBJPATH=obj/unix/ EXEEXT= ### ### Stuff ### ENDIANCHK_BIN=$(BINPATH)endianchk$(EXEEXT) TARGETS += $(ENDIANCHK_BIN) include Makefile.gen $(ENDIANCHK_BIN): endianchk.o $(CC) $(CFLAGS) -o $@ $+ $(LDFLAGS) config.h: $(ENDIANCHK_BIN) $(ENDIANCHK_BIN) > $@