summaryrefslogtreecommitdiff
path: root/package/heimdal/patches/patch-lib_roken_Makefile_in
blob: a702be6b7b59c84910c7e0d5fd790aea33bf69c5 (plain)
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
34
35
36
37
38
39
40
41
--- heimdal-1.4.orig/lib/roken/Makefile.in	2010-09-13 09:24:23.000000000 +0200
+++ heimdal-1.4/lib/roken/Makefile.in	2010-11-10 19:56:51.764995802 +0100
@@ -726,9 +726,6 @@ getifaddrs-test$(EXEEXT): $(getifaddrs_t
 hex-test$(EXEEXT): $(hex_test_OBJECTS) $(hex_test_DEPENDENCIES) 
 	@rm -f hex-test$(EXEEXT)
 	$(LINK) $(hex_test_OBJECTS) $(hex_test_LDADD) $(LIBS)
-make-roken$(EXEEXT): $(make_roken_OBJECTS) $(make_roken_DEPENDENCIES) 
-	@rm -f make-roken$(EXEEXT)
-	$(LINK) $(make_roken_OBJECTS) $(make_roken_LDADD) $(LIBS)
 parse_bytes-test$(EXEEXT): $(parse_bytes_test_OBJECTS) $(parse_bytes_test_DEPENDENCIES) 
 	@rm -f parse_bytes-test$(EXEEXT)
 	$(LINK) $(parse_bytes_test_OBJECTS) $(parse_bytes_test_LDADD) $(LIBS)
@@ -1977,18 +1974,18 @@ $(LTLIBOBJS) $(libroken_la_OBJECTS): rok
 .hin.h:
 	cp $< $@
 
-@CROSS_COMPILE_FALSE@roken.h: make-roken$(EXEEXT)
-@CROSS_COMPILE_FALSE@	@./make-roken$(EXEEXT) > tmp.h ;\
-@CROSS_COMPILE_FALSE@	if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \
-@CROSS_COMPILE_FALSE@	else rm -f roken.h; mv tmp.h roken.h; fi
+roken.h: make-roken$(EXEEXT)
+	./make-roken$(EXEEXT) > tmp.h ;\
+	if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \
+	else rm -f roken.h; mv tmp.h roken.h; fi
 
-@CROSS_COMPILE_FALSE@make-roken.c: roken.h.in roken.awk
-@CROSS_COMPILE_FALSE@	$(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c
+make-roken.c: roken.h.in roken.awk
+	$(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c
+
+make-roken$(EXEEXT): make-roken.c
+	$(HOSTCC) $(HOSTCFLAGS) -I$(top_builddir)/include -DHAVE_CONFIG_H \
+		-o $@ $<
 
-@CROSS_COMPILE_TRUE@roken.h: $(top_srcdir)/cf/roken-h-process.pl roken.h.in
-@CROSS_COMPILE_TRUE@	perl $(top_srcdir)/cf/roken-h-process.pl \
-@CROSS_COMPILE_TRUE@	-c $(top_builddir)/include/config.h  \
-@CROSS_COMPILE_TRUE@	-p $(srcdir)/roken.h.in -o roken.h
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.