# Makefile generated by configure
# Makefile for:  demo - typhoon test and demonstration program

DEFINES		= -I../include -DUNIX 
#CFLAGS		= -O -fstrength-reduce -W -Wunused -Wpointer-arith -Wswitch \
#		  $(DEFINES)
CC		= gcc
CFLAGS		=  -W -Wunused -Wpointer-arith -Wswitch $(DEFINES)
LIBS		= -ltyphoon
PREFIX		= /usr/local
LDFLAGS		= -L../src
DESTBIN		= $(PREFIX)/bin
DESTOWN		= root
DESTGRP		= local
SHELL		= /bin/sh
PROGRAM		= demo
SRCS		= demo.c
HDRS		= demo.h
OBJS		= demo.o

.DEFAULT:
		co $@

.PHONY:		all lint tags install uninstall clean

all:		$(PROGRAM)

$(PROGRAM):	$(OBJS)
		$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)

demo.h demo.dbd: demo.ddl
		../util/ddlp -a4 -f demo

lint:
		lint -u $(DEFINES) $(SRCS)

tags:		$(HDRS) $(SRCS)
		ctags -w $(HDRS) $(SRCS)

install:	$(PROGRAM)
		cp $(PROGRAM) $(DESTBIN)
		-mcs -c $(DESTBIN)/$(PROGRAM)
		strip $(DESTBIN)/$(PROGRAM)
		chmod 755 $(DESTBIN)/$(PROGRAM)
		chown $(DESTOWN) $(DESTBIN)/$(PROGRAM)
		chgrp $(DESTGRP) $(DESTBIN)/$(PROGRAM)

uninstall:
		rm -f $(DESTBIN)/$(PROGRAM)

clean:
		-rcsclean -u
		-rm -rf $(PROGRAM) $(OBJS) demo.h demo.dbd data
		-rm -f Makefile tags core a.out made *.o

### Do NOT edit this or the following lines.
demo.o:		demo.h
