void-packages/srcpkgs/discount/patches/cross-makefile_in.patch

35 lines
757 B
Diff
Raw Normal View History

2018-02-28 13:02:34 +01:00
--- Makefile.in.orig
+++ Makefile.in
@@ -1,5 +1,5 @@
CC=@CC@ -I.
-LFLAGS=-L.
+LFLAGS=@LDFLAGS@ -L.
CFLAGS=@CFLAGS@
AR=@AR@
RANLIB=@RANLIB@
2018-02-28 13:02:34 +01:00
@@ -85,6 +85,9 @@
blocktags: mktags
./mktags > blocktags
+mktags: mktags.c
+ cc -o $@ $<
+
# example programs
2018-02-28 13:02:34 +01:00
@THEME@theme: theme.o $(COMMON) $(MKDLIB) mkdio.h
@THEME@ $(CC) $(CFLAGS) $(LFLAGS) -o theme theme.o $(COMMON) -lmarkdown @LIBS@
@@ -123,11 +126,11 @@
done
2018-02-28 13:02:34 +01:00
branch: tools/branch.c config.h
- $(CC) -o branch tools/branch.c
+ cc -I. -o branch tools/branch.c
cols: tools/cols.c config.h
- $(CC) -o cols tools/cols.c
+ cc -o cols tools/cols.c
echo: tools/echo.c config.h
- $(CC) -o echo tools/echo.c
+ cc -o echo tools/echo.c
clean:
rm -f $(PGMS) $(TESTFRAMEWORK) $(SAMPLE_PGMS) *.o