diff options
author | jestin | 2004-06-25 18:26:19 +0000 |
---|---|---|
committer | jestin | 2004-06-25 18:26:19 +0000 |
commit | cfc602e2408bf90cce7be62f3f1e940cd5af7172 (patch) | |
tree | f3b3078f308ff676acfee099aa3c0a4268e15b9a /examples/Makefile | |
parent | 43eaf35871578ea498e20ed4f945cce14f8f3032 (diff) | |
download | ivy-c-cfc602e2408bf90cce7be62f3f1e940cd5af7172.zip ivy-c-cfc602e2408bf90cce7be62f3f1e940cd5af7172.tar.gz ivy-c-cfc602e2408bf90cce7be62f3f1e940cd5af7172.tar.bz2 ivy-c-cfc602e2408bf90cce7be62f3f1e940cd5af7172.tar.xz |
j'ajoute des exemples de code dans le CVS. il faudra les intégrer à la doc...
Diffstat (limited to 'examples/Makefile')
-rw-r--r-- | examples/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..234618f --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,36 @@ +.SUFFIXES: .c .o + + CC = gcc -g +TARGETS = motifButtonIvy gtkIvyButton testUnbind + SRCS = motifButtonIvy.c gtkIvyButton.c testUnbind.c + OBJS = $(SRCS:.c=.o) +PCRELIB = `pcre-config --libs` +EXTRALIB= -L../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) + +testUnbind: testUnbind.o + $(CC) -o $@ $< -livy $(PCRELIB) $(EXTRALIB) + +gtkIvyButton.o: gtkIvyButton.c + $(CC) -c $< $(GTKINC) + +gtkIvyButton: gtkIvyButton.o + $(CC) -o $@ $< $(GTKLIB) -lgivy $(EXTRALIB) + +motifButtonIvy.o: motifButtonIvy.c + $(CC) -c $< $(MOTIFINC) $(EXTRALIB) + +motifButtonIvy: motifButtonIvy.o + $(CC) -o $@ $< $(MOTIFLIB) -lxtivy -lpcre $(EXTRALIB) + + +clean: + rm -fR $(OBJS) $(TARGETS) |