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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
# Makefile for Chameleon
#
# ff@lagged.net
#
# This works on my machine. :)
# If it gives you trouble, tinker with it a bit.
CC = gcc
LD = $(CC)
# this should work fine.
#CFLAGS = -O2 -pedantic -Wall
CFLAGS = `imlib-config --cflags` `gtk-config --cflags`
# if 'make' has trouble finding your gtk stuff, and you know that
# you have it installed, try uncommenting the following line:
# CFLAGS = -O2 -pedantic -Wall `gtk-config --cflags`
# hope you have all of these...
# you can get GTK (glib, gtk, gdk) from www.gtk.org
# you can get Imlib and libgif from www.enlightenment.org
# look elsewhere (like sunsite.unc.edu) for the other libs...
#LIBS = -L/usr/X11/lib -L/usr/local/lib -lgtk -lgdk -lglib -lXext -lX11 -lm -ljpeg -lpng -ltiff -lz -lgif -lImlib
LIBS = `imlib-config --libs` `gtk-config --libs`
# the files we're compiling...
OBJS = chameleon.o setrgb.o setname.o setfile.o info.o
# this is pretty standard.
BIN_DIR = $(DESTDIR)/usr/bin
PIXMAP_PATH = $(DESTDIR)/usr/share/pixmaps
#MAN_PATH = $(DESTDIR)/usr/X11R6/man/man1
# yup, thats me.
PROG = chameleon
all: $(PROG)
install: $(PROG)
chown root.root $(PROG)
chmod 755 $(PROG)
install -m 755 $(PROG) $(BIN_DIR)
install -m 644 cham.xpm $(PIXMAP_PATH)
clean:
rm -f $(PROG) *.o *.core core *.bak *~
$(PROG): $(OBJS)
$(LD) -o $(PROG) -L/usr/lib $(OBJS) $(LIBS)
static: $(OBJS)
$(LD) -static -o $(PROG) $(OBJS) $(LIBS)
chameleon.o: chameleon.c
$(CC) $(CFLAGS) -c chameleon.c
setrgb.o: setrgb.c
$(CC) $(CFLAGS) -c setrgb.c
setname.o: setname.c
$(CC) $(CFLAGS) -c setname.c
setfile.o: setfile.c
$(CC) $(CFLAGS) -c setfile.c
info.o: info.c
$(CC) $(CFLAGS) -c info.c
|