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
6776 georgesk 6
LDFLAGS=@LDFLAGS@
7
CPPFLAGS=@CPPFLAGS@
8
 
10 reyssat 9
defines=@DEFINES@
10
rpath=@RPATH@
11
STRIP=@STRIP@
8161 bpr 12
lopt=-L$(wims_home)/lib -lwims -lm $(rpath)
13
 
8195 bpr 14
O=compile.o match.o suffix.o translate.o symtext.o
8219 bpr 15
H=../Lib/libwims.h ../../config.h ../../includes.h ../../wimsdef.h
8173 bpr 16
all:: symtext
17
 
8219 bpr 18
%.o: %.c *.h $(H)
17887 georgesk 19
	$(cc) -o $@ $(cflags) $(CPPFLAGS) $(defines) -c $<
8161 bpr 20
 
10 reyssat 21
clean::
8161 bpr 22
	rm -f *.o symtext
10 reyssat 23
 
24
distclean:
8161 bpr 25
	rm -f *.o symtext
10 reyssat 26
	cd $(wims_home)/public_html/bin; rm -f symtext 2>/dev/null; cd ../../src/Misc/symtext
27
	rm -f Makefile
28
 
8195 bpr 29
symtext: $(O)
30
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(O) $(lopt) -o symtext
10 reyssat 31
	./symtext -t
32
	$(STRIP) $@
33
	cp $@ $(wims_home)/public_html/bin
34
 
35