# Gnu-Makefile for package skel # # Note: This Makefile MUST at least work with GNU-make, please check # ----- (the automatic variable $< does not work with HP-UX make). # # This is an example of how to use the flavor dependent environment # variables defined at package setup (packman -s skel v1) to make the # package building scheme transparent for all flavors. # # Note: All flavor dependent files (targets) like binaries, object # files, object libraries must be created in the binary directroy # of the package here $SKELBIN. This allows to use one unique set # of source files for all systems (or flavors). # bin = ${SKELBIN}/ src = ${SKELSRC}/ cc = $(SKELCC) flavor = $(MANAGEFLAVOR) debug = -g # comp = $(cc) $(debug) -c -o $@ link = $(cc) $(debug) -o $@ # all: $(bin)skel $(bin)skel_lib.o # $(bin)skel_lib.o: skel_lib.c skel.h $(comp) $< # $(bin)skel: skel.c skel.h $(bin)skel_lib.o $(link) $< $(bin)skel_lib.o # clean: -cd $(bin); rm skel, skel.o, skel_lib.o #