0a943f8198
- Makes the port PORTDOCSDIR-safe - Makes the port PORTEXAMPLESDIR-safe - Pass maintainership to submitter PR: 118250 Submitted by: Pietro Cerutti <gahr@gahr.ch> Approved by: portmgr (pav)
35 lines
1.7 KiB
Text
35 lines
1.7 KiB
Text
--- Makefile.orig 2000-02-15 23:07:21.000000000 +0100
|
|
+++ Makefile 2007-11-25 22:09:04.000000000 +0100
|
|
@@ -1,23 +1,21 @@
|
|
-CFLAGS = -Wall -O -I. -I/usr/X11R6/include -I/usr/lib/glib/include -I/usr/X11R6/include/X11 -DUSE_IMLIB -DUSE_GNOME -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/X11R6/include -I/usr/lib/glib/include
|
|
-LIBS = -L. -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm -lgdk_imlib -L/usr/lib -lImlib -ljpeg -ltiff -lungif -lpng -lz -lm -lXext -L/usr/X11R6/lib -lSM -lICE -lXext -lX11 -I/usr/include/glib -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
|
|
-CC = gcc
|
|
+GNOME_CFLAGS != $(LOCALBASE)/bin/gnome-config --cflags gnomeui
|
|
+GNOME_LIBS != $(LOCALBASE)/bin/gnome-config --libs gnomeui
|
|
+CFLAGS += -I. -DUSE_IMLIB -DUSE_GNOME $(GNOME_CFLAGS)
|
|
+LIBS = $(GNOME_LIBS)
|
|
+CC ?= gcc
|
|
|
|
all: easygtk.c
|
|
$(CC) $(CFLAGS) -c easygtk.c
|
|
ar rc libeasygtk.a easygtk.o
|
|
ranlib libeasygtk.a
|
|
-
|
|
-install:
|
|
- cp libeasygtk.a /usr/lib/libeasygtk.a
|
|
- cp easygtk.h /usr/include/easygtk.h
|
|
- mkdir -p /usr/doc/EasyGTK
|
|
- cp manual.html /usr/doc/EasyGTK/manual.html
|
|
+ $(CC) $(CFLAGS) -shared -fpic easygtk.c -o libeasygtk.so.1 $(LIBS)
|
|
+ $(LN) -sf libeasygtk.so.1 libeasygtk.so
|
|
|
|
clean:
|
|
rm example testtree *.o *.a .libdep* *~ core
|
|
|
|
example: example.c
|
|
- $(CC) $(CFLAGS) -o example example.c $(LIBS) libeasygtk.a
|
|
+ $(CC) $(CFLAGS) -o example example.c $(LIBS) -L./ -leasygtk
|
|
|
|
testtree: testtree.c
|
|
- $(CC) $(CFLAGS) -o testtree testtree.c $(LIBS) libeasygtk.a
|
|
+ $(CC) $(CFLAGS) -o testtree testtree.c $(LIBS) -L./ -leasygtk
|