diff Makefile.unix @ 671:dd3083a3383d

Use the makefile.inc helper from th-libs for generic targets.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 09 Mar 2016 15:09:59 +0200
parents 23d16d9cdf96
children cfbc5ddf74e5
line wrap: on
line diff
--- a/Makefile.unix	Tue Mar 01 17:21:52 2016 +0200
+++ b/Makefile.unix	Wed Mar 09 15:09:59 2016 +0200
@@ -20,22 +20,12 @@
 
 ENDIANCHK_BIN = $(BINPATH)endianchk$(EXEEXT)
 NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
-
+THLIBS_DEP = config.h
 
 include Makefile.gen
 
 
 ##
-## Generate endian check and config.h
-##
-$(ENDIANCHK_BIN): endianchk.c
-	$(CC) $(CFLAGS) -o $@ $+
-
-config.h: $(ENDIANCHK_BIN)
-	$(ENDIANCHK_BIN) > $@
-
-
-##
 ## Install targets
 ##
 install: all