Mercurial > forge
comparison main/plot/Makefile @ 0:6b33357c7561 octave-forge
Initial revision
author | pkienzle |
---|---|
date | Wed, 10 Oct 2001 19:54:49 +0000 |
parents | |
children | 13faa34b3134 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6b33357c7561 |
---|---|
1 sinclude ../../Makeconf | |
2 | |
3 ifndef MKOCTFILE | |
4 MKOCTFILE = mkoctfile | |
5 HAVE_X = 1 | |
6 X_CFLAGS = -I/usr/X11R6/include | |
7 X_LIBS = -L/usr/X11R6/lib | |
8 endif | |
9 | |
10 MOFLAGS = $(X_CFLAGS) $(X_LIBS) | |
11 | |
12 TARGETS = graphics.o ginput.oct grab.oct gtext.oct gzoom.oct | |
13 | |
14 ifdef HAVE_X | |
15 all: $(TARGETS) | |
16 else | |
17 all: | |
18 @echo WARNING: X Windows not found on your system | |
19 endif | |
20 | |
21 ginput.oct: graphics.o | |
22 grab.oct: graphics.o | |
23 gtext.oct: graphics.o | |
24 gzoom.oct: graphics.o | |
25 | |
26 %.o: %.cc | |
27 $(MKOCTFILE) $(MOFLAGS) $< -o $@ | |
28 | |
29 %.oct: %.cc | |
30 $(MKOCTFILE) $(MOFLAGS) graphics.o $< -o $@ | |
31 $(RM) $(@:.oct=.o) | |
32 | |
33 clean: | |
34 $(RM) *.o *~ | |
35 | |
36 purge: clean | |
37 $(RM) -f *.oct | |
38 | |
39 archive: | |
40 tar cvzf graphics.tgz Makefile *.cc *.h *.m | |
41 |