Subversion Repositories wimsdev

Rev

Rev 8185 | Rev 8219 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 reyssat 1
# @configure_input@
2
 
3
wims_home=../../..
4
cc=@CC@
5
cflags=@CFLAGS@ -Wall @STATIC_LIB@
6776 georgesk 6
LDFLAGS=@LDFLAGS@
7
CPPFLAGS=@CPPFLAGS@
10 reyssat 8
defines=@DEFINES@
9
STRIP=@STRIP@
8122 bpr 10
lopt=-L$(wims_home)/lib -lwims -lm $(rpath)
8195 bpr 11
O=tables.o basic.o extract.o type.o not.o mathexp.o
10 reyssat 12
all:: mathexp
13
 
8136 bpr 14
%.o: %.c
15
	$(cc) -o $@ $(cflags) $(defines) -c $<
16
 
10 reyssat 17
clean::
8136 bpr 18
	rm -f *.o mathexp
10 reyssat 19
 
20
distclean:
21
	rm -f mathexp
22
	cd $(wims_home)/public_html/bin; rm -f mathexp 2>/dev/null; cd ../../src/Misc/mathexp
23
	rm -f Makefile
24
 
8195 bpr 25
mathexp: $(O)
26
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(O) $(lopt) -o mathexp
10 reyssat 27
	$(STRIP) $@
28
	cp $@ $(wims_home)/public_html/bin