Subversion Repositories wimsdev

Rev

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

# @configure_input@

wims_home=../..
cc=@CC@
cflags=@CFLAGS@ -Wall
LDFLAGS=@LDFLAGS@
CPPFLAGS=@CPPFLAGS@

defines=@DEFINES@
STRIP=@STRIP@
rpath=
libtype=static
lopt=-L../../lib -lwims -lm $(rpath)
oefobjects=oeflines.o compare.o outexec.o process.o sp.o
msgobjects=msglines.o compare.o def.o doc.o sp.o

all: oef2wims msg2wims

%.o: %.c
        $(cc) -o $@ $(cflags) $(defines) -c $<

clean:
        rm -f oef2wims  msg2wims *.o 2>/dev/null

distclean:
        rm -f oef2wims $(wims_home)/bin/oef2wims 2>/dev/null
        rm -f msg2wims $(wims_home)/bin/msg2wims $(wims_home)/public_html/bin/msg2wims 2>/dev/null
        rm -f Makefile

oef2wims: $(oefobjects) ../Lib/libwims.*
        $(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(defines) $(oefobjects) oef2wims.c $(lopt) -o oef2wims
        $(STRIP) oef2wims
        chmod og-x oef2wims
        ./oef2wims table
        cp oef2wims $(wims_home)/bin

msg2wims: $(msgobjects) ../Lib/libwims.*
        $(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) $(defines) $(msgobjects) msg2wims.c $(lopt) -o msg2wims
        ./msg2wims table
        $(STRIP) msg2wims
        cp msg2wims $(wims_home)/bin