# # Makefile: # # Copyright (c) 2003 Chris Lightfoot. All rights reserved. # Email: chris@ex-parrot.com; WWW: http://www.ex-parrot.com/~chris/ # # $Id: Makefile,v 1.3 2004/01/29 22:52:28 chris Exp $ # CFLAGS = -Wall -g LDFLAGS = -g VERSION = 0.2 SRCS = htmlise.c tables.c markup.c inline.c OBJS = $(SRCS:.c=.o) HDRS = htmlise.h TXTS = README test.txt htmlise: $(OBJS) $(CC) $(LDFLAGS) $(LDLIBS) -o $@ $(OBJS) clean: rm -f *.o htmlise core *~ tarball: $(SRCS) $(HDRS) $(TXTS) mkdir htmlise-$(VERSION) set -e ; for i in Makefile $(SRCS) $(HDRS) $(TXTS) ; do cp $$i htmlise-$(VERSION)/$$i ; done tar cvzf htmlise-$(VERSION).tar.gz htmlise-$(VERSION) rm -rf htmlise-$(VERSION) %.o: %.c Makefile $(CC) $(CFLAGS) -o $@ -c $<