projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unused static function rm_SetElement was removed.
[idzebra-moved-to-github.git]
/
dfa
/
Makefile
diff --git
a/dfa/Makefile
b/dfa/Makefile
index
96de1f6
..
a83a74b
100644
(file)
--- a/
dfa/Makefile
+++ b/
dfa/Makefile
@@
-1,17
+1,17
@@
# Copyright (C) 1994, Index Data I/S
# All rights reserved.
# Sebastian Hammer, Adam Dickmeiss
# Copyright (C) 1994, Index Data I/S
# All rights reserved.
# Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.4 1994-10-03 17:22:17 adam Exp $
+# $Id: Makefile,v 1.7 1995-02-06 10:12:55 adam Exp $
SHELL=/bin/sh
INCLUDE=-I../include
TPROG1=agrep
TPROG2=lexer
TPROG3=grepper
SHELL=/bin/sh
INCLUDE=-I../include
TPROG1=agrep
TPROG2=lexer
TPROG3=grepper
-CFLAGS=-g -Wall
+CFLAGS=-g -Wall -pedantic -ansi
DEFS=$(INCLUDE) -DYACC -DYYDEBUG=1 -DMEMDEBUG=1
LIB=../lib/dfa.a
DEFS=$(INCLUDE) -DYACC -DYYDEBUG=1 -DMEMDEBUG=1
LIB=../lib/dfa.a
-PO = regexp.o imalloc.o states.o set.o bset.o
+PO = dfa.o imalloc.o states.o set.o bset.o
CPP=cc -E
YACC=yacc
CPP=cc -E
YACC=yacc
@@
-19,10
+19,10
@@
all: $(LIB)
alll: $(LIB) $(TPROG1) $(TPROG2) $(TPROG3)
alll: $(LIB) $(TPROG1) $(TPROG2) $(TPROG3)
-$(TPROG1): $(TPROG1).o $(LIB)
+$(TPROG1): $(TPROG1).o $(LIB) ../lib/util.a
$(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) ../lib/util.a
$(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) ../lib/util.a
-$(TPROG2): $(TPROG2).o readfile.o $(LIB)
+$(TPROG2): $(TPROG2).o readfile.o $(LIB) ../lib/util.a
$(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o readfile.o $(LIB) ../lib/util.a
$(TPROG3): $(TPROG3).o $(LIB)
$(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o readfile.o $(LIB) ../lib/util.a
$(TPROG3): $(TPROG3).o $(LIB)
@@
-52,12
+52,13
@@
depend1:
mv y.tab.c regexp.c
sed '/^#Depend/q' <Makefile.tmp >Makefile
$(CPP) -M $(DEFS) *.c |sed 's/regexp\.c/regexp.y/g' >>Makefile
mv y.tab.c regexp.c
sed '/^#Depend/q' <Makefile.tmp >Makefile
$(CPP) -M $(DEFS) *.c |sed 's/regexp\.c/regexp.y/g' >>Makefile
- -rm Makefile.tmp
+ rm -f Makefile.tmp regexp.c
depend2:
$(YACC) $(YFLAGS) regexp.y
mv y.tab.c regexp.c
$(CPP) -M $(DEFS) *.c |sed 's/regexp\.c/regexp.y/g' >.depend
depend2:
$(YACC) $(YFLAGS) regexp.y
mv y.tab.c regexp.c
$(CPP) -M $(DEFS) *.c |sed 's/regexp\.c/regexp.y/g' >.depend
+ rm -f regexp.c
ifeq (.depend,$(wildcard .depend))
include .depend
ifeq (.depend,$(wildcard .depend))
include .depend