5219f2d83f
- Support install macros PR: 51871 Submitted by: Ports Fury
28 lines
628 B
Text
28 lines
628 B
Text
--- Makefile.orig Wed Nov 10 09:01:10 1999
|
|
+++ Makefile Tue May 6 13:01:15 2003
|
|
@@ -1,8 +1,9 @@
|
|
-prefix=/usr
|
|
+prefix=${PREFIX}
|
|
BINDIR=${prefix}/bin
|
|
MANDIR=${prefix}/man
|
|
|
|
-CFLAGS=-O2 -D_FILE_OFFSET_BITS=64 -Wall
|
|
+CFLAGS+=${CPPFLAGS}
|
|
+LD=${CC}
|
|
|
|
PROGRAM=dvdtape
|
|
OBJECTS=dvdtape.o isosize.o
|
|
@@ -10,10 +11,11 @@
|
|
all: $(PROGRAM)
|
|
|
|
$(PROGRAM): $(OBJECTS)
|
|
+ $(LD) $(LDFLAGS) -o ${PROGRAM} $(OBJECTS) $(LIBS)
|
|
|
|
install: all
|
|
- install $(PROGRAM) $(BINDIR)
|
|
- install $(PROGRAM).1 $(MANDIR)/man1/
|
|
+ ${BSD_INSTALL_PROGRAM} $(PROGRAM) $(BINDIR)
|
|
+ ${BSD_INSTALL_MAN} $(PROGRAM).1 $(MANDIR)/man1/
|
|
|
|
clean:
|
|
-rm -f $(PROGRAM) *.o *~
|