blob: 90fd08dae6514b1fbb1aecefadf79d77aa50eb41 (
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
37
38
39
40
41
42
43
44
45
46
47
48
|
$NetBSD: patch-aa,v 1.2 2005/03/14 16:11:42 rillig Exp $
--- makefile.orig 2005-02-24 23:39:10.000000000 +0100
+++ makefile
@@ -5,20 +5,20 @@
MD=mkdir
CC=@gcc
-CFLAGS+=-Wall -O2 -I $(LOGIQX)/dev
+CFLAGS+=-Wall -O2 -I .
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
#
|