From cfc602e2408bf90cce7be62f3f1e940cd5af7172 Mon Sep 17 00:00:00 2001 From: jestin Date: Fri, 25 Jun 2004 18:26:19 +0000 Subject: j'ajoute des exemples de code dans le CVS. il faudra les intégrer à la doc... --- examples/Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 examples/Makefile (limited to 'examples/Makefile') 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) -- cgit v1.1