Rev 8185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 8185 | Rev 8219 | ||
|---|---|---|---|
| Line 8... | Line 8... | ||
| 8 | 8 | ||
| 9 | defines=@DEFINES@ |
9 | defines=@DEFINES@ |
| 10 | STRIP=@STRIP@ |
10 | STRIP=@STRIP@ |
| 11 | lopt=-L$(wims_home)/lib -lwims -lm $(rpath) |
11 | lopt=-L$(wims_home)/lib -lwims -lm $(rpath) |
| 12 | O=basic.o colors.o tfm.o gf.o font.o image.o dvi.o texgif.o |
12 | O=basic.o colors.o tfm.o gf.o font.o image.o dvi.o texgif.o |
| 13 | - | ||
| - | 13 | H=../Lib/libwims.h ../config.h ../includes.h ../wimsdef.h |
|
| 14 | all: texgif |
14 | all: texgif |
| 15 | 15 | ||
| 16 | %.o: %.c |
16 | %.o: %.c *.h $(H) |
| 17 | $(cc) -o $@ $(cflags) $(defines) -c $< |
17 | $(cc) -o $@ $(cflags) $(defines) -c $< |
| 18 | 18 | ||
| 19 | clean:: |
19 | clean:: |
| 20 | rm -f *.o texgif |
20 | rm -f *.o texgif |
| 21 | rm -fR test/texg* test/[0-9]* |
21 | rm -fR test/texg* test/[0-9]* |
| 22 | 22 | ||
| 23 | distclean: clean |
23 | distclean: clean |
| 24 | rm -f $(wims_home)/public_html/bin/tex..gif |
24 | rm -f $(wims_home)/public_html/bin/tex..gif |
| 25 | rm -f Makefile |
25 | rm -f Makefile |
| 26 | 26 | ||
| 27 | texgif: |
27 | texgif: $(O) |
| 28 | $(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(defines) $(O) -lgd $(lopt) -o texgif |
28 | $(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(defines) $(O) -lgd $(lopt) -o texgif |
| 29 | $(STRIP) texgif |
29 | $(STRIP) texgif |
| 30 | cp texgif $(wims_home)/public_html/bin/tex..gif |
30 | cp texgif $(wims_home)/public_html/bin/tex..gif |
| 31 | 31 | ||
| 32 | colors.c: ../Flydraw/colors colors.sh |
32 | colors.c: ../Flydraw/colors colors.sh |