minix/commands/pkg_install/info/Makefile.orig

57 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile.in,v 1.21 2010/04/20 00:39:13 joerg Exp $
srcdir= .
prefix= /usr/bin
exec_prefix= ${prefix}
sbindir= ${exec_prefix}/sbin
mandir= ${datarootdir}/man
datarootdir= ${prefix}/share
man1dir= $(mandir)/man1
cat1dir= $(mandir)/cat1
BOOTSTRAP=
SSL_SUPPORT=
CC= cc
CCLD= $(CC)
.if empty(BOOTSTRAP)
LIBS= -linstall -lfetch -larchive -lbz2 -lz -lutil
.if !empty(SSL_SUPPORT)
LIBS+= -lcrypto
.endif
CPPFLAGS= -I. -I$(srcdir) -I../lib
.else
LIBS= -linstall
CPPFLAGS= -I. -I$(srcdir) -I../lib -DBOOTSTRAP
.endif
DEFS= -DHAVE_CONFIG_H
CFLAGS= -g
LDFLAGS= -L../lib
INSTALL= /usr/bin/install -c
PROG= pkg_info
OBJS= main.o perform.o show.o
all: $(PROG)
.c.o:
$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $<
$(PROG): $(OBJS)
$(CCLD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
clean:
rm -f $(OBJS) $(PROG)
install:
$(INSTALL) -m 755 -d ${DESTDIR}$(sbindir)
$(INSTALL) -m 755 -d ${DESTDIR}$(man1dir)
$(INSTALL) -m 755 -d ${DESTDIR}$(cat1dir)
$(INSTALL) $(PROG) ${DESTDIR}$(sbindir)/$(PROG)
$(INSTALL) -m 444 $(PROG).1 ${DESTDIR}$(man1dir)/$(PROG).1
$(INSTALL) -m 444 $(PROG).cat ${DESTDIR}$(cat1dir)/$(PROG).0