Subversion Repositories wimsdev

Rev

Rev 8185 | Rev 8219 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8185 Rev 8195
Line 6... Line 6...
6
LDFLAGS=@LDFLAGS@
6
LDFLAGS=@LDFLAGS@
7
CPPFLAGS=@CPPFLAGS@
7
CPPFLAGS=@CPPFLAGS@
8
defines=@DEFINES@
8
defines=@DEFINES@
9
STRIP=@STRIP@
9
STRIP=@STRIP@
10
lopt=-L$(wims_home)/lib -lwims -lm $(rpath)
10
lopt=-L$(wims_home)/lib -lwims -lm $(rpath)
11
objects=tables.o basic.o extract.o type.o not.o mathexp.o
11
O=tables.o basic.o extract.o type.o not.o mathexp.o
12
all:: mathexp
12
all:: mathexp
13
 
13
 
14
%.o: %.c
14
%.o: %.c
15
	$(cc) -o $@ $(cflags) $(defines) -c $<
15
	$(cc) -o $@ $(cflags) $(defines) -c $<
16
 
16
 
Line 20... Line 20...
20
distclean:
20
distclean:
21
	rm -f mathexp
21
	rm -f mathexp
22
	cd $(wims_home)/public_html/bin; rm -f mathexp 2>/dev/null; cd ../../src/Misc/mathexp
22
	cd $(wims_home)/public_html/bin; rm -f mathexp 2>/dev/null; cd ../../src/Misc/mathexp
23
	rm -f Makefile
23
	rm -f Makefile
24
 
24
 
25
mathexp: $(objects)
25
mathexp: $(O)
26
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(objects) $(lopt) -o mathexp
26
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(O) $(lopt) -o mathexp
27
	$(STRIP) $@
27
	$(STRIP) $@
28
	cp $@ $(wims_home)/public_html/bin
28
	cp $@ $(wims_home)/public_html/bin