Subversion Repositories wimsdev

Rev

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

Rev 8148 Rev 8195
Line 9... Line 9...
9
defines=@DEFINES@
9
defines=@DEFINES@
10
STRIP=@STRIP@
10
STRIP=@STRIP@
11
rpath=
11
rpath=
12
libtype=static
12
libtype=static
13
lopt=-L../../lib -lwims -lm $(rpath)
13
lopt=-L../../lib -lwims -lm $(rpath)
14
oefobjects=oeflines.o compare.o outexec.o process.o sp.o
14
oefO=oeflines.o compare.o outexec.o process.o sp.o oef2wims.o
15
msgobjects=msglines.o compare.o def.o doc.o sp.o
15
msgO=msglines.o compare.o def.o doc.o sp.o msg2wims.o
16
 
16
 
17
all: oef2wims msg2wims
17
all: oef2wims msg2wims
18
 
18
 
19
%.o: %.c
19
%.o: %.c
20
	$(cc) -o $@ $(cflags) $(defines) -c $<
20
	$(cc) -o $@ $(cflags) $(defines) -c $<
Line 25... Line 25...
25
distclean:
25
distclean:
26
	rm -f oef2wims $(wims_home)/bin/oef2wims 2>/dev/null
26
	rm -f oef2wims $(wims_home)/bin/oef2wims 2>/dev/null
27
	rm -f msg2wims $(wims_home)/bin/msg2wims $(wims_home)/public_html/bin/msg2wims 2>/dev/null
27
	rm -f msg2wims $(wims_home)/bin/msg2wims $(wims_home)/public_html/bin/msg2wims 2>/dev/null
28
	rm -f Makefile
28
	rm -f Makefile
29
 
29
 
30
oef2wims: $(oefobjects) ../Lib/libwims.*
30
oef2wims: $(oefO) ../Lib/libwims.*
31
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(defines) $(oefobjects) oef2wims.c $(lopt) -o oef2wims
31
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(defines) $(oefO) $(lopt) -o oef2wims
32
	$(STRIP) oef2wims
32
	$(STRIP) oef2wims
33
	chmod og-x oef2wims
33
	chmod og-x oef2wims
34
	./oef2wims table
34
	./oef2wims table
35
	cp oef2wims $(wims_home)/bin
35
	cp oef2wims $(wims_home)/bin
36
 
36
 
37
msg2wims: $(msgobjects) ../Lib/libwims.*
37
msg2wims: $(msgO) ../Lib/libwims.*
38
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(defines) $(msgobjects) msg2wims.c $(lopt) -o msg2wims
38
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(defines) $(msgO) $(lopt) -o msg2wims
39
	./msg2wims table
39
	./msg2wims table
40
	$(STRIP) msg2wims
40
	$(STRIP) msg2wims
41
	cp msg2wims $(wims_home)/bin
41
	cp msg2wims $(wims_home)/bin