diff options
author | drouin | 2004-09-01 15:54:51 +0000 |
---|---|---|
committer | drouin | 2004-09-01 15:54:51 +0000 |
commit | 12751e3fc02e45da1198b82dadf83fe861ebfd1e (patch) | |
tree | a56a2fdb4d4640dc29b5e3d080265d4d164f6b5d /examples/Makefile | |
parent | d95d579469c04a581fd5559e96d28b88293613c3 (diff) | |
download | ivy-c-12751e3fc02e45da1198b82dadf83fe861ebfd1e.zip ivy-c-12751e3fc02e45da1198b82dadf83fe861ebfd1e.tar.gz ivy-c-12751e3fc02e45da1198b82dadf83fe861ebfd1e.tar.bz2 ivy-c-12751e3fc02e45da1198b82dadf83fe861ebfd1e.tar.xz |
replaced the gtk mainloop with a glib one. added -Wall compile directive . fixed some warnings
Diffstat (limited to 'examples/Makefile')
-rw-r--r-- | examples/Makefile | 11 |
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) *~ |