1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
#CDEBUG=-g -Wall
CDEBUG=-O2
CC=gcc
# Edit the following to point to the patched versions of gtk and gdk
LIBDIR=-L/usr/X11R6/lib
LIBS=-lgtk -lgdk -lglib -lXext -lXpm -lX11 -lm
## The following may be useful if you don't have the GTK libs installed
#GTKDIR=/usr/home/owen/gimp/gtk+
#INCLUDES=-I/usr/home/owen/gimp/gtk+
#LIBS=$(GTKDIR)/gtk/.libs/libgtk.a $(GTKDIR)/gdk/.libs/libgdk.a \
# $(GTKDIR)/glib/.libs/libglib.a -lXext -lXpm -lX11 -lm
CPPFLAGS=-I/usr/X11R6/include -I/usr/lib/glib/include
# if GTK+ was compiled with XInput support
XINPUT_LIBS = -lXi
###########################
# you (hopefully) shouldn't need to edit below here
#--------------------------------------------------
CFLAGS=$(CDEBUG) $(XINPUT_DEFINES) $(INCLUDES) -Wall
GSUMI_OBJS=gsumi.o bitmap.o render.o fileops.o toolbox.o xform.o \
rect.o region.o icons.o menus.o lispish.o blob.o \
gsumirc.o
all: gsumi $(XINPUT_TARGETS)
gsumi: $(GSUMI_OBJS)
$(CC) -o gsumi $(GSUMI_OBJS) $(LIBDIR) $(LIBS) $(XINPUT_LIBS)
clean:
rm -f $(GSUMI_OBJS) gsumi *.d
distclean: clean
rm -f *.d
# for dependency information
%.d: %.c
$(SHELL) -ec '$(CC) -M $(CPPFLAGS) $< \
| sed '\''s/$*\\.o[ :]*/& $@/g'\'' > $@'
# include the dependency files (needs GNU make, just remove
# if this causes a problem)
include $(GSUMI_OBJS:.o=.d)
|