2007-02-26 01:00:32 +01:00
|
|
|
$NetBSD: patch-aa,v 1.3 2007/02/26 00:00:32 wiz Exp $
|
2005-03-04 13:05:12 +01:00
|
|
|
|
2007-02-26 01:00:32 +01:00
|
|
|
--- makefile.orig 2007-01-01 18:13:12.000000000 +0000
|
2005-03-04 13:05:12 +01:00
|
|
|
+++ makefile
|
|
|
|
@@ -5,20 +5,20 @@
|
2005-03-14 17:11:42 +01:00
|
|
|
MD=mkdir
|
|
|
|
|
|
|
|
CC=@gcc
|
2007-02-26 01:00:32 +01:00
|
|
|
-CFLAGS+=-Wall -O3 -I $(LOGIQX)/dev
|
|
|
|
+CFLAGS+=-Wall -O3 -I .
|
2005-03-14 17:11:42 +01:00
|
|
|
|
|
|
|
LD=@gcc
|
|
|
|
LIBS+=-lz -lm
|
|
|
|
|
|
|
|
UPX=@upx -9
|
|
|
|
|
|
|
|
-DLSRC=$(LOGIQX)/dev/datlib/src
|
|
|
|
+DLSRC=./src
|
|
|
|
|
|
|
|
DLINCS= $(DLSRC)/macro.h \
|
|
|
|
$(DLSRC)/type.h \
|
|
|
|
$(DLSRC)/token.h \
|
|
|
|
|
|
|
|
-DLOBJ=$(LOGIQX)/dev/datlib/obj
|
|
|
|
+DLOBJ=./obj
|
|
|
|
|
|
|
|
DLOBJDIRS=$(DLOBJ) \
|
|
|
|
$(DLOBJ)/drv \
|
|
|
|
@@ -42,7 +42,7 @@ DLOBJS= $(DLOBJ)/datlib.o \
|
|
|
|
# Build the obj tree then build the EXE
|
|
|
|
#
|
|
|
|
|
|
|
|
-datlib: dlmaketree $(DLOBJS)
|
|
|
|
+datlib: dlmaketree $(DLOBJS) $(DLOBJ)/libdatlib.a
|
|
|
|
|
|
|
|
#
|
|
|
|
# Creating obj directory tree
|
|
|
|
@@ -53,6 +53,10 @@ dlmaketree: $(sort $(DLOBJDIRS))
|
|
|
|
$(sort $(DLOBJDIRS)):
|
|
|
|
$(MD) $@
|
|
|
|
|
|
|
|
+$(DLOBJ)/libdatlib.a: $(DLOBJS)
|
|
|
|
+ @echo Creating $@...
|
|
|
|
+ $(AR) r $@ $(DLOBJS)
|
|
|
|
+ $(RANLIB) $@
|
|
|
|
#
|
|
|
|
# Compiling of separate modules
|
|
|
|
#
|