diff options
Diffstat (limited to 'pkgtools/pkg_install/files/add/Makefile.in')
-rw-r--r-- | pkgtools/pkg_install/files/add/Makefile.in | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/pkgtools/pkg_install/files/add/Makefile.in b/pkgtools/pkg_install/files/add/Makefile.in index d2c84f18119..f2ea05483f7 100644 --- a/pkgtools/pkg_install/files/add/Makefile.in +++ b/pkgtools/pkg_install/files/add/Makefile.in @@ -1,42 +1,47 @@ -# $NetBSD: Makefile.in,v 1.5 2003/07/31 09:51:01 grant Exp $ -# Original from FreeBSD, no rcs id. +# $NetBSD: Makefile.in,v 1.6 2003/09/01 16:27:11 jlam Exp $ -prefix= @prefix@ -INSTALL= @INSTALL@ +srcdir= @srcdir@ +prefix= @prefix@ +exec_prefix= @exec_prefix@ +sbindir= @sbindir@ mandir= @mandir@ -mandirman1= ${mandir}/man1 -mandircat1= ${mandir}/cat1 + +man1dir= $(mandir)/man1 +cat1dir= $(mandir)/cat1 CC= @CC@ CCLD= $(CC) LIBS= -linstall @LIBS@ -CPPFLAGS= @CPPFLAGS@ -DEFS= @DEFS@ -I. -I@srcdir@ -I../lib +CPPFLAGS= $(DEFS) @CPPFLAGS@ -I. -I$(srcdir) -I../lib +DEFS= @DEFS@ -DBINDIR=\"$(sbindir)\" CFLAGS= @CFLAGS@ LDFLAGS= @LDFLAGS@ -L../lib -LINK= $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@ -COMPILE= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) +INSTALL= @INSTALL@ PROG= pkg_add -SRCS= main.c perform.c futil.c extract.c verify.c -OBJS= main.o perform.o futil.o extract.o verify.o - -all: ${PROG} +SRCS= main.c perform.c futil.c extract.c verify.c +OBJS= $(SRCS:.c=.o) -${PROG}: ${OBJS} - ${LINK} ${OBJS} ${LIBS} +.PHONY: all clean install .c.o: - $(COMPILE) -c $< -o $@ + $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $< + +all: $(PROG) + +$(PROG): $(OBJS) + $(CCLD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) clean: - rm -f ${OBJS} ${PROG} + rm -f $(OBJS) $(PROG) install: - ${INSTALL} ${PROG} ${prefix}/sbin - ${INSTALL} -m 755 -d ${mandircat1} - ${INSTALL} -m 444 ${PROG}.1 ${mandirman1}/${PROG}.1 - ${INSTALL} -m 444 ${PROG}.cat1 ${mandircat1}/${PROG}.0 + $(INSTALL) -m 755 -d $(sbindir) + $(INSTALL) -m 755 -d $(man1dir) + $(INSTALL) -m 755 -d $(cat1dir) + $(INSTALL) $(PROG) $(sbindir) + $(INSTALL) -m 444 $(PROG).1 $(man1dir)/$(PROG).1 + $(INSTALL) -m 444 $(PROG).cat1 $(man1dir)/$(PROG).0 |