#
# Generic (very simple) makefile
#

#
# What to build
#

PROG = skelgen
OBJS = macros.o font.o mapper.o template.o main.o generate.o
INCS = 

#
# Development programs
#

COMPILER = g++
LINKER   = g++
STRIPPER = strip

#
# Options
#

COMPILER_OPTIONS = -c -O3 -fomit-frame-pointer -fstrength-reduce -ffast-math -Wall -I/usr/X11R6/include

#
# Compile & linking
#

COMPILE =\
	@echo "------------------------------------------------------------------------------------------------------------------------------------";\
	echo "                                                                                                            Compiling $<";\
	$(COMPILER) $(COMPILER_OPTIONS) $<
LINK =\
	@echo "------------------------------------------------------------------------------------------------------------------------------------";\
	echo "                                                                                                            Linking   $@";\
	$(LINKER) -o $@ $^
STRIP =\
	@echo "------------------------------------------------------------------------------------------------------------------------------------";\
	echo "                                                                                                            Stripping $@";\
	$(STRIPPER) $@

#
# Make stuff happen
#

%.o     : %.cpp $(INCS)
	$(COMPILE)

$(PROG) : $(OBJS)
	$(LINK)
	$(STRIP)

#
# Clean things up...
#

clean:
	@rm -f $(OBJS) $(PROG)
