pkgsrc/emulators/DatUtil/patches/patch-aa
2011-11-29 06:11:53 +00:00

36 lines
731 B
Text

$NetBSD: patch-aa,v 1.3 2011/11/29 06:14:03 sbd Exp $
--- makefile.orig 2005-02-24 09:39:16.000000000 +0000
+++ makefile
@@ -3,7 +3,7 @@
#
NAME=datutil
-EXT=.exe
+EXT=
EXE=$(NAME)$(EXT)
SRC=src
@@ -18,9 +18,10 @@ OBJS= $(DLOBJS) \
# Build the obj tree then build the EXE
#
-all: dlmaketree maketree $(EXE)
+all: maketree $(EXE)
-include $(LOGIQX)/dev/datlib/makefile
+DLSRC= $(PREFIX)/include/DatLib
+CFLAGS+= -I src -I $(PREFIX)/include
#
# Creating obj directory tree
@@ -45,8 +46,7 @@ $(OBJ)/%.o: $(SRC)/%.c $(SRC)/%.h $(DLSR
$(EXE): $(OBJS)
@echo Linking $@...
- $(LD) $(OBJS) $(LIBS) -o $@
- $(UPX) $@
+ $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ -ldatlib -lm -lz
#
# Complete removal of built objects