aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_passwd/Makefile
blob: e4ceb5c7136b24f589da0f2af27ac36ddfad4684 (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
#-------------------------------------------------------------------------
#
# Makefile
#    Makefile for bin/pg_passwd
#-------------------------------------------------------------------------

SRCDIR= ../..
include ../../Makefile.global

OBJS= pg_passwd.o

all: pg_passwd

pg_passwd: $(OBJS)
	$(CC) -o pg_passwd $(OBJS) $(LDFLAGS)

install: pg_passwd
	$(INSTALL) $(INSTL_EXE_OPTS) pg_passwd$(X) $(BINDIR)/pg_passwd$(X)

.PHONY: submake
submake:
	$(MAKE) -C $(LIBPQDIR) libpq.a

depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend

clean:
	rm -f pg_passwd$(X) $(OBJS)

ifeq (depend,$(wildcard depend))
include depend
endif