mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
3d1a4dbf03
PR: 7827 Submitted by: Andrey Zakhvatov andy@icc.surw.chel.su
36 lines
840 B
Plaintext
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
|