Subversion Repositories wimsdev

Rev

Rev 8219 | 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
8219 bpr 12
H=../../Lib/libwims.h ../../config.h ../../includes.h ../../wimsdef.h
10 reyssat 13
all:: mathexp
14
 
8219 bpr 15
%.o: %.c $(H)
17887 georgesk 16
	$(cc) -o $@ $(cflags) $(CPPFLAGS) $(defines) -c $<
8136 bpr 17
 
10 reyssat 18
clean::
8136 bpr 19
	rm -f *.o mathexp
10 reyssat 20
 
21
distclean:
22
	rm -f mathexp
23
	cd $(wims_home)/public_html/bin; rm -f mathexp 2>/dev/null; cd ../../src/Misc/mathexp
24
	rm -f Makefile
25
 
8195 bpr 26
mathexp: $(O)
27
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(O) $(lopt) -o mathexp
10 reyssat 28
	$(STRIP) $@
29
	cp $@ $(wims_home)/public_html/bin