summaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 659c8a0..d119c1e 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,18 +1,19 @@
.SUFFIXES: .c .o
- CC = gcc -g
+ CC = gcc -g -Wall
TARGETS = motifButtonIvy gtkIvyButton testUnbind
SRCS = motifButtonIvy.c gtkIvyButton.c testUnbind.c
OBJS = $(SRCS:.c=.o)
PCRELIB = `pcre-config --libs`
EXTRALIB= -L../src
+EXTRAINC=-I../src
GTKLIB = `pkg-config gtk+-x11-2.0 --libs`
GTKINC = `pkg-config gtk+-x11-2.0 --cflags`
MOTIFINC=
MOTIFLIB= -L/usr/X11R6/lib -lXm -lXt -lX11
#MOTIFINC= -I/sw/include
#MOTIFLIB= -L/sw/lib -L/usr/X11R6/lib -lXm -lXt -lX11
-
+
all: $(TARGETS)
@@ -20,10 +21,10 @@ testUnbind: testUnbind.o
$(CC) -o $@ $< -livy $(PCRELIB) $(EXTRALIB)
gtkIvyButton.o: gtkIvyButton.c
- $(CC) -c $< $(GTKINC)
+ $(CC) -c $< $(GTKINC) $(EXTRAINC)
gtkIvyButton: gtkIvyButton.o
- $(CC) -o $@ $< $(GTKLIB) -lgivy $(EXTRALIB)
+ $(CC) -o $@ $< $(GTKLIB) $(EXTRALIB) $(PCRELIB) -lglibivy
motifButtonIvy.o: motifButtonIvy.c
$(CC) -c $< $(MOTIFINC) $(EXTRALIB)
@@ -32,4 +33,4 @@ motifButtonIvy: motifButtonIvy.o
$(CC) -o $@ $< $(MOTIFLIB) -lxtivy -lpcre $(EXTRALIB)
clean:
- rm -fR $(OBJS) $(TARGETS)
+ rm -fR $(OBJS) $(TARGETS) *~