aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/Makefile.in
blob: 7ed351ab7a9b2ba601267475c49fdb19f43be15a (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
SRCDIR= ../../..
include $(SRCDIR)/Makefile.global

PQ_INCLUDE=-I$(SRCDIR)/include -I$(SRCDIR)/interfaces/libpq

all: lib

lib: libecpg.a

clean:
	rm -f *.o *.a core a.out *~

install: libecpg.a
	install -m 644 libecpg.a $(LIBDIR)

uninstall::
	rm -f $(LIBDIR)/libecpg.a

# Rules that do something
libecpg.a : libecpg.a(ecpglib.o) libecpg.a(typename.o)

ecpglib.o : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
	$(CC) -O2 -g -Wall -I../include $(PQ_INCLUDE) -c ecpglib.c
typename.o : typename.c ../include/ecpgtype.h
	$(CC) -g -O2 -Wall -I../include $(PQ_INCLUDE) -c typename.c