# $Cambridge: hermes/src/prayer/templates/src/Makefile,v 1.4 2008/09/16 09:59:59 dpc22 Exp $

ifeq ($(strip $(RPM_BUILD)), true)
include ../../Config-RPM
else
include ../../Config
endif

CFLAGS  = $(BASECFLAGS)
LDFLAGS = $(BASELDFLAGS)

LIB= ../../lib/lib_nossl.a $(BASE_LIBS)

all: template_expand template_compile

template_expand: template_expand_main.o log.o empty.o $(LIB)
	$(CC) $(LDFLAGS) -o template_expand log.o empty.o template_expand_main.o $(LIB)

template_compile: template_compile_main.o log.o empty.o $(LIB)
	$(CC) $(LDFLAGS) -o template_compile log.o empty.o template_compile_main.o $(LIB)

%.o: %.c Makefile
	$(CC) $(CFLAGS) -I../../lib -c $<

install:

clean:
	rm -f template_expand template_compile *.o *~ \#*\#

