2000-01-24 06:02:10 +00:00
|
|
|
--- Makefile.orig Sun Jan 21 06:02:46 1996
|
|
|
|
+++ Makefile Tue Jan 18 00:00:00 2000
|
1998-09-28 02:17:33 +00:00
|
|
|
@@ -12,33 +12,30 @@
|
1998-02-20 09:31:39 +00:00
|
|
|
# for conditions under which this file may be redistributed.
|
|
|
|
#
|
|
|
|
|
|
|
|
-CC=gcc
|
|
|
|
-CFLAGS=-O2
|
|
|
|
-
|
|
|
|
-INCLUDES=
|
|
|
|
+#CC=gcc
|
|
|
|
+CFLAGS+= -I${X11BASE}/include -DX11BASE=\"${X11BASE}\"
|
|
|
|
|
|
|
|
LIB=
|
|
|
|
|
|
|
|
-XLIB=-L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11
|
|
|
|
-
|
|
|
|
-COMPILE=$(CC) -c $(CFLAGS)
|
|
|
|
+XLIB=-L${X11BASE}/lib -lXaw -lXmu -lXt -lX11 -lcompat
|
1998-09-28 02:17:33 +00:00
|
|
|
+.if ${PORTOBJFORMAT} == "elf"
|
|
|
|
+XLIB+= -Wl,-rpath,${X11BASE}/lib
|
|
|
|
+.endif
|
1998-02-20 09:31:39 +00:00
|
|
|
|
|
|
|
LINK=$(CC)
|
|
|
|
|
|
|
|
OBJ=xbomb.o xwindow.o hiscore.o
|
|
|
|
|
|
|
|
-INSTDIR=/usr/local
|
|
|
|
+INSTDIR=${PREFIX}
|
|
|
|
|
|
|
|
########
|
|
|
|
+all: xbomb
|
|
|
|
|
|
|
|
xbomb : $(OBJ)
|
|
|
|
$(LINK) $(OBJ) -o $@ $(LIB) $(XLIB)
|
|
|
|
|
|
|
|
########
|
|
|
|
|
|
|
|
-%.o : %.c
|
|
|
|
- $(COMPILE) $< -o $@ $(INCLUDES)
|
|
|
|
-
|
|
|
|
xbomb.o : xbomb.c xbomb.h
|
|
|
|
xwindow.o : xwindow.c xbomb.h icon.h
|
|
|
|
hiscore.o : hiscore.c xbomb.h
|
2000-01-24 06:02:10 +00:00
|
|
|
@@ -51,10 +48,10 @@
|
|
|
|
########
|
|
|
|
|
|
|
|
install :
|
|
|
|
- strip xbomb
|
|
|
|
- install -d $(INSTDIR)/bin
|
|
|
|
- install -d $(INSTDIR)/man/man6
|
1998-02-20 09:31:39 +00:00
|
|
|
- install -d $(INSTDIR)/lib/app-defaults
|
|
|
|
- install -m 755 xbomb $(INSTDIR)/bin
|
|
|
|
- install -m 644 xbomb.6 $(INSTDIR)/man/man6
|
|
|
|
- install -m 644 xbomb.ad $(INSTDIR)/lib/app-defaults/XBomb
|
2000-01-24 06:02:10 +00:00
|
|
|
+# strip xbomb
|
|
|
|
+# install -d $(INSTDIR)/bin
|
|
|
|
+# install -d $(INSTDIR)/man/man6
|
|
|
|
+# install -d $(INSTDIR)/lib/app-defaults
|
1998-02-20 09:31:39 +00:00
|
|
|
+ ${BSD_INSTALL_PROGRAM} xbomb $(INSTDIR)/bin
|
|
|
|
+ ${BSD_INSTALL_MAN} xbomb.6 $(INSTDIR)/man/man6
|
2000-01-24 06:02:10 +00:00
|
|
|
+ ${BSD_INSTALL_DATA} xbomb.ad $(INSTDIR)/lib/X11/app-defaults/XBomb
|