brad c8af4c68cb - install pbmplus.h header; requested by d@ a long time ago.
- simplify Makefiles a bit while I'm here.
2001-01-08 22:12:31 +00:00

77 lines
2.0 KiB
Plaintext

--- pgm/Makefile.orig Fri Jan 28 05:14:02 1994
+++ pgm/Makefile Mon Jan 8 16:16:13 2001
@@ -18,14 +18,16 @@
#CFLAGS = -g -O
LDFLAGS = -s
#LDFLAGS =
-INSTALLBINARIES = /usr/new/pbm
-INSTALLMANUALS1 = /usr/man/man1
+INSTALLBINARIES = $(PREFIX)/bin
+INSTALLMANUALS1 = $(PREFIX)/man/man1
SUFFIXMANUALS1 = 1
-INSTALLMANUALS3 = /usr/man/man3
+INSTALLMANUALS3 = $(PREFIX)/man/man3
SUFFIXMANUALS3 = 3
-INSTALLMANUALS5 = /usr/man/man5
+INSTALLMANUALS5 = $(PREFIX)/man/man5
SUFFIXMANUALS5 = 5
-MANCP = cp
+MANCP = install -c -m 0644
+INSTALLLIBS = $(PREFIX)/lib
+INSTALLDEFS = $(PREFIX)/include
PBMDIR = ../pbm
INCLUDEPBM = -I$(PBMDIR)
@@ -39,10 +41,10 @@
LIBPGM = libpgm.a
PORTBINARIES = asciitopgm bioradtopgm fstopgm hipstopgm \
- lispmtopgm pbmtopgm pgmbentley pgmenhance pgmhist pgmkernel \
+ lispmtopgm pbmtopgm pgmbentley pgmenhance pgmhist \
pgmnoise pgmnorm pgmoil pgmramp pgmtofs pgmtolispm \
pgmtopbm psidtopgm spottopgm
-MATHBINARIES = pgmcrater pgmedge pgmtexture rawtopgm
+MATHBINARIES = pgmcrater pgmedge pgmtexture rawtopgm pgmkernel
BINARIES = $(PORTBINARIES) $(MATHBINARIES)
OBJECTS = asciitopgm.o bioradtopgm.o fstopgm.o hipstopgm.o \
@@ -56,17 +58,19 @@
MANUALS5 = pgm
-#all: binaries
-all: merge
-#install: install.bin
-install: install.merge
+all: binaries
+#all: merge
+install: install.bin
+#install: install.merge
binaries: $(BINARIES)
install.bin: binaries
cd $(INSTALLBINARIES) ; rm -f $(BINARIES)
- cp $(BINARIES) $(INSTALLBINARIES)
+ install -c -s -m 0755 $(BINARIES) $(INSTALLBINARIES)
+ install -c -m 0644 $(LIBPGM) $(INSTALLLIBS)
+ install -c -m 0644 pgm.h $(INSTALLDEFS)
merge: pgmmerge
@@ -134,7 +138,6 @@
pgmedge pgmedge.o: pgmedge.c
pgmenhance pgmenhance.o: pgmenhance.c
pgmhist pgmhist.o: pgmhist.c
-pgmkernel pgmkernel.o: pgmkernel.c
pgmnoise pgmnoise.o: pgmnoise.c
pgmnorm pgmnorm.o: pgmnorm.c
pgmoil pgmoil.o: pgmoil.c
@@ -148,4 +151,4 @@
spottopgm spottopgm.o: spottopgm.c
clean:
- -rm -f *.o *.a *.cat *~ core $(BINARIES) pgmmerge
+ -rm -f *.o *.a *.cat *~ core *.core $(BINARIES) pgmmerge