################################################## # Makefile for plug-ins (borrowed from the Julia # Plug-in. Sent to me by Jeremy Dinsel # Extended to be a little more generic on # 02.10.1997 by Peter Uray. ################################################## ################################################## # # Header Section. Please adapt the variables below # to your system as indicated in the comments. # ################################################## # Set GIMP version to the used one VERSION=0.99 # This variable points to the directory where the # twist plugin should be installed. GIMP_PLUGINDIR=/usr/lib/gimp/1.0/plug-ins # This variable points to the directory containing # the X11 include files X11_INCLUDES=/usr/X11R6/include # This variable points to the GIMP include files GIMP_INCLUDES=/usr/include # This variable points to the X11 libraries X11_LIBS=/usr/X11R6/lib # This variable points to the GIMP libraries # (gimp, gimpui, gtk, gdk) GIMP_LIBS=/usr/lib # Select a compiler CC=gcc ################################################## # # End of Header Section. Do not modify anything # below this point. # ################################################## ################################################## # You shouldn't have to change anything below # this line! So, don't touch it!!! ################################################## CFLAGS+=-I$(X11_INCLUDES) -I$(GIMP_INCLUDES) -O2 -Wall -ffast-math LDADD=-L$(GIMP_LIBS) -L$(X11_LIBS) -lgimpui -lgimp -lgtk -lgdk -lglib -lm -lX11 -lXext PRGNAME=twist OBJS=$(PRGNAME).o SRCS=$(PRGNAME).c ################################################## all: compile compile: $(PRGNAME) $(PRGNAME): $(OBJS) $(CC) -o $(PRGNAME) $(OBJS) $(LDADD) $(OBJS): $(SRCS) $(CC) -c $(CFLAGS) $(SRCS) install: strip $(PRGNAME) cp $(PRGNAME) $(GIMP_PLUGINDIR) sync clean: rm -f $(OBJS) $(PRGNAME) $(PRGNAME).core core ##################################################