[BACK]Return to patch-aa CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / emulators / ROMInfo / patches

File: [cvs.NetBSD.org] / pkgsrc / emulators / ROMInfo / patches / patch-aa (download)

Revision 1.3, Tue Nov 29 06:24:03 2011 UTC (8 years, 2 months ago) by sbd
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, HEAD
Changes since 1.2: +3 -3 lines

Honor LDFLAGS from pkgsrc.

$NetBSD: patch-aa,v 1.3 2011/11/29 06:24:03 sbd Exp $

--- makefile.orig	2005-02-24 09:39:06.000000000 +0000
+++ 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) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ -ldatlib -lm -lz
 
 #
 # Complete removal of built objects