pkgsrc/emulators/ROMBuild/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

47 lines
893 B
Text

$NetBSD: patch-aa,v 1.2 2005/03/14 16:20:58 wiz Exp $
--- makefile.orig 2004-07-01 16:25:18.000000000 +0200
+++ makefile
@@ -3,7 +3,7 @@
#
NAME=rombuild
-EXT=.exe
+EXT=
EXE=$(NAME)$(EXT)
SRC=src
@@ -11,19 +11,17 @@ OBJ=obj
OBJDIRS=$(OBJ)
-OBJS= $(DLOBJ)/misc/getopt.o \
- $(DLOBJ)/mame/unzip.o \
- $(DLOBJ)/mame/msdos/msdos.o \
- $(OBJ)/$(NAME).o \
+OBJS= $(OBJ)/$(NAME).o \
$(OBJ)/rominfo.o
#
# 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
@@ -52,8 +50,7 @@ $(OBJ)/rominfo.o: $(SRC)/rominfo.c $(SRC
$(EXE): $(OBJS)
@echo Linking $@...
- $(LD) $(OBJS) $(LIBS) -o $@
- $(UPX) $@
+ $(CC) $(OBJS) $(LIBS) -o $@ -ldatlib -lm -lz
#
# Complete removal of built objects