summaryrefslogtreecommitdiff
path: root/emulators/ZIPIdent/patches/patch-aa
blob: f00411fbcf9189f6ee9e01b16907be781ebcad92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-aa,v 1.1.1.1 2005/03/04 12:05:13 wiz Exp $

--- makefile.orig	2004-07-01 16:25:20.000000000 +0200
+++ makefile
@@ -3,7 +3,7 @@
 #
 
 NAME=zipident
-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