Ticket #36397: patch-makefile.diff
File patch-makefile.diff, 1.1 KB (added by stevecheckoway (Stephen Checkoway), 12 years ago) |
---|
-
makefile
old new 6 6 # Also, before installing, you should change the string "JGRAPH_DIR" in 7 7 # jgraph.1 to be the directory containing the example jgraphs. 8 8 9 CC = gcc -LCC 9 CC := @@CC@@ 10 CFLAGS = -DLCC -O3 -Wall 10 11 11 12 OBJS = draw.o \ 12 13 edit.o \ … … examples: $(EXAMPLES) 49 50 50 51 .SUFFIXES: .c .o .h .jgr .jps .eps .tex .dvi 51 52 52 .jgr.jps: 53 jgraph -P < $*.jgr > $*.jps53 %.jps: %.jgr 54 jgraph -P <$< >$@ 54 55 55 .jgr.eps: 56 jgraph < $*.jgr > $*.eps 57 58 .tex.dvi: 59 latex $*.tex 60 .c.o: 61 $(CC) -c -g $*.c 56 %.eps: %.jgr 57 jgraph <$< >$@ 62 58 59 %.dvi: %.tex 60 latex $* 61 %.o: %.c 62 $(CC) -c -o $@ $(CFLAGS) $< 63 63 64 64 jgraph: $(OBJS) 65 $(CC) -g $(OBJS) -lm -o jgraph65 $(CC) $(OBJS) -o $@ 66 66 67 67 sin: sin.o 68 cc -o sin sin.o -lm68 $(CC) $^ -o $@ 69 69 70 70 ad.jps: cube.eps disk.eps 71 71 bailey.jps: bailey.pts … … process.o: process.c jgraph.h list.h pri 93 93 show.o: show.c jgraph.h list.h prio_list.h 94 94 token.o: token.c list.h 95 95 clean: 96 rm -f *.o a.out *.jps96 $(RM) *.o a.out *.jps jgraph