Makefile.def
# Common makefile definitions for my makefiles
# look also in Makefile.def2, which is included after everything else
# Sun Jan 28 22:03:55 MET 1996 GM: created
# 96/02/21 04:08:51 muellerg: updated for use with HP-UX and Linux
# 96/03/20 15:41:11 muellerg: made Makefile platform independent
# global variables
SHELL = /bin/sh
.SUFFIXES:
.SUFFIXES: .c .o .eps .data
# Definitions required in all program directories to compile and link
# C programs.
# Definitions for specific host
include ../Makefile.$(HOSTTYPE)
# Common definitions
CFLAGS=
TRAGET_ARCH=
LDFLAGS=
LOADLIBES=
# Our library that almost every program needs.
COMMON = ../libcommon.a
# Common temp files to delete from each directory.
TEMPFILES = core core.* *.o
# Rules
LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) #$(TARGET_ARCH)
# How to generate an executable from an object file
.o:
$(LINK.o) $< $(LOADLIBES) $(LDLIBS) -o $@
$(STRIP) $@
# How to generate an executable from a C source file
.c:
$(LINK.c) $< $(LOADLIBES) $(LDLIBS) -o $@
$(STRIP) $@
# How to generate an executable from a C++ source file
.cc:
$(LINK.c) $< $(LOADLIBES) $(LDLIBS) -o $@
$(STRIP) $@