Makefile 777 Bytes
Newer Older
1
# Generated automatically from Makefile.in by configure.
2 3
SRCDIR= ../../..
include $(SRCDIR)/Makefile.global
4

5 6 7 8 9
MAJOR_VERSION=0
MINOR_VERSION=5
PATCHLEVEL=1

CFLAGS=-I../include -O2 -g -Wall -DMAJOR_VERSION=$(MAJOR_VERSION) -DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL)
10 11 12

all:: ecpg

13 14
clean:
	rm -f *.o core a.out ecpg preproc.tab.h y.tab.c *~
15

16
install: all
17
	install -c -m 755 ecpg $(DESTDIR)$(BINDIR)
18

19
uninstall:
20
	rm -f $(DESTDIR)$(BINDIR)/ecpg
21 22

# Rule that really do something.
23 24
ecpg: y.tab.o pgc.o type.o ecpg.o ../lib/typename.o
	$(CC) -g -O2 -Wall -o ecpg y.tab.o pgc.o type.o ecpg.o ../lib/typename.o $(LEXLIB)
25 26

y.tab.h y.tab.c: preproc.y
27
	$(YACC) $(YFLAGS) $<
28 29 30 31

y.tab.o : y.tab.h ../include/ecpgtype.h
type.o : ../include/ecpgtype.h
pgc.o : ../include/ecpgtype.h