pkgsrc/emulators/ROMInfo/patches/patch-aa
wiz 188fde5d60 Automatically convert all files to unix line endings by extracting, and
remove DOS line endings from patches too. Improves probability of
compilation on gcc2 systems.
2005-03-14 16:20:58 +00:00

36 lines
720 B
Text

$NetBSD: patch-aa,v 1.2 2005/03/14 16:20:58 wiz Exp $
--- makefile.orig 2005-02-24 23:39:06.000000000 +0100
+++ makefile
@@ -3,7 +3,7 @@
#
NAME=rominfo
-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) $(OBJS) $(LIBS) -o $@ -ldatlib -lm -lz
#
# Complete removal of built objects