\ und durch eine
    neue Zeile abzuschließen.
  Erzeuge die Datei Makefile im Verzeichnis der Source-Dateien
# Achtung: Rücke den Text am Zeilenanfang 
#          mit TABS ein!
# defines
CC= gcc
#CFLAGS= -g -Wall
CXX= g++
#CXX= cxx
CXXFLAGS= -g -Wall
#CXXFLAGS= -g -w0
LD= g++
#LD= cxx
LIBS= -lm
BIN= main
# Programs
SRC=    circle.cc \
                point.cc \
                rect.cc \
                chain.cc \
                main.cc
OBJS=   circle.o \
                point.o \
                rect.o \
                chain.o \
                main.o \
all:    ${BIN}
# dependencies
circle.o: circle.h point.h
rect.o: point.h rect.h
point.o: point.h
chain.o: chain.h
# linking
${BIN}: ${OBJS} ${SRC}
                ${LD}   ${OBJS} -o ${BIN} ${LIBS}
clean:
        rm -f *.o *~ *.bak ${BIN}
| © 1997 Gottfried Rudorfer, C++-AG, Lehrveranstaltungen, Abteilung für Angewandte Informatik, Wirtschaftsuniversität Wien, 12/16/1998 |