4a5325bf46
- Add LICENSE - Add missing depends - Fix segfault due to buffer overflow
30 lines
741 B
Text
30 lines
741 B
Text
--- Makefile.orig 1999-08-30 14:14:17 UTC
|
|
+++ Makefile
|
|
@@ -1,14 +1,17 @@
|
|
-LIBDIR = -L/usr/X11R6/lib
|
|
+CC ?= gcc
|
|
+CFLAGS += -c -Wall
|
|
+INCLUDES = -I${LOCALBASE}/include
|
|
+LIBDIR = -L${LOCALBASE}/lib
|
|
LIBS = -lXpm -lXext -lX11
|
|
OBJS = wmtictactoe.o ../wmgeneral/wmgeneral.o
|
|
|
|
.c.o:
|
|
- cc -c -g -O2 -Wall $< -o $*.o
|
|
+ ${CC} ${CFLAGS} ${INCLUDES} $< -o $*.o
|
|
|
|
all: wmtictactoe
|
|
|
|
wmtictactoe: $(OBJS)
|
|
- cc -o wmtictactoe $^ $(LIBDIR) $(LIBS)
|
|
+ ${CC} -o wmtictactoe $^ ${LIBDIR} ${LIBS}
|
|
|
|
clean:
|
|
for i in $(OBJS) ; do \
|
|
@@ -17,5 +20,4 @@ clean:
|
|
rm -rf wmtictactoe core *~
|
|
|
|
install:
|
|
- /usr/bin/install -c -o 0 -g 0 -s -m 755 wmtictactoe /usr/local/bin/wmtictactoe
|
|
-
|
|
+ ${BSD_INSTALL_PROGRAM} wmtictactoe ${DESTDIR}${PREFIX}/bin/wmtictactoe
|