mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
2cb1e9189c
remove USE_GMAKE PR: 20412 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
43 lines
979 B
Plaintext
43 lines
979 B
Plaintext
--- Makefile.orig Wed Jan 6 11:28:39 1999
|
|
+++ Makefile Thu Aug 3 21:28:34 2000
|
|
@@ -1,8 +1,8 @@
|
|
-CC = gcc
|
|
-CFLAGS = -O2 -Wall
|
|
-INCDIR = -I/usr/X11R6/include/X11
|
|
-DESTDIR= /usr/X11R6
|
|
-LIBDIR = -L/usr/X11R6/lib
|
|
+CC ?= gcc
|
|
+CFLAGS ?= -O2
|
|
+INCDIR = -I${X11BASE}/include
|
|
+DESTDIR= ${PREFIX}
|
|
+LIBDIR = -L${X11BASE}/lib
|
|
|
|
|
|
|
|
@@ -22,14 +22,14 @@
|
|
|
|
|
|
.c.o:
|
|
- $(CC) $(COPTS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
|
|
+ $(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR)
|
|
|
|
|
|
all: wmSun.o wmSun
|
|
|
|
wmSun.o: wmSun_master.xpm wmSun_mask.xbm
|
|
wmSun: $(OBJS)
|
|
- $(CC) $(COPTS) $(SYSTEM) -lm -o wmSun $^ $(INCDIR) $(LIBDIR) $(LIBS)
|
|
+ $(CC) $(CFLAGS) $(SYSTEM) -lm -o wmSun $(OBJS) $(LIBDIR) $(LIBS)
|
|
|
|
clean:
|
|
for i in $(OBJS) ; do \
|
|
@@ -38,6 +38,6 @@
|
|
rm -f wmSun
|
|
|
|
install:: wmSun
|
|
- install -s -m 0755 wmSun $(DESTDIR)/bin
|
|
- install -m 0644 wmSun.1 $(DESTDIR)/man/man1
|
|
+ ${BSD_INSTALL_PROGRAM} wmSun $(DESTDIR)/bin
|
|
+ ${BSD_INSTALL_MAN} wmSun.1 $(DESTDIR)/man/man1
|
|
|