1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/games/garith/files/patch-aa
Satoshi Taoka 3d1a4dbf03 Arithmetic quiz program for X Window System
PR:		7827
Submitted by:	Andrey Zakhvatov andy@icc.surw.chel.su
1999-04-13 14:43:17 +00:00

36 lines
840 B
Plaintext

--- Makefile.orig Thu Sep 18 13:03:00 1997
+++ Makefile Fri Mar 19 18:15:00 1999
@@ -1,26 +1,22 @@
# Makefile adapted from that in the GMix distribution, thanks.
CC=gcc
+GTK_FLAGS=`gtk12-config --cflags` `gtk12-config --libs`
LINK=gcc
INCDIR=
LIBDIR=-L/usr/X11R6/lib
-LDLIBS=-lgnome -lgnomeui -lgdk -lgtk -lglib -lm
-OPTFLAGS= -m486 -O2 -Wall
+#LDLIBS=-lgnome -lgnomeui -lgdk -lgtk -lglib -lm
+#OPTFLAGS= -m486 -O2 -Wall
DEST=garith
OBJS=garith.o
SRCS=garith.c
-CFLAGS= $(OPTFLAGS) $(DEFINES) $(INCDIR)
+CFLAGS= $(OPTFLAGS) $(DEFINES) $(INCDIR) $(GTK_FLAGS)
LFLAGS= $(LIBDIR) $(LDLIBS)
-$(DEST) : $(OBJS)
- $(LINK) $(CFLAGS) -o $@ $(OBJS) $(LFLAGS)
+$(DEST) : garith.c
+ $(CC) -Wall $(GTK_FLAGS) garith.c -o garith ${CFLAGS}
clean:
rm -f *~
rm -f *.o $(DEST)
-
-.c.o:
- $(CC) $(CFLAGS) -c $<
-
-garith.o: garith.c