You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
597 B
30 lines
597 B
#
|
|
# Makefile fuer Counter-Programm
|
|
# File: makefile
|
|
# Reto Bonderer, 24.11.2010
|
|
#
|
|
CC = gcc
|
|
LINK = gcc
|
|
# '-pedantic' sorgt dafuer, dass gcc streng arbeitet
|
|
#CFLAGS = -c -pedantic
|
|
#LFLAGS = -pedantic
|
|
CFLAGS = -c -Wall
|
|
LFLAGS = -Wall
|
|
OBJS = counter.o counterCtrl.o counterTest.o
|
|
EXE = counterTest
|
|
|
|
$(EXE): $(OBJS)
|
|
$(LINK) $(LFLAGS) -o $(EXE) $(OBJS)
|
|
|
|
counterTest.o: counterTest.c counterCtrl.h
|
|
$(CC) $(CFLAGS) counterTest.c
|
|
|
|
counter.o: counter.c counter.h
|
|
$(CC) $(CFLAGS) counter.c
|
|
|
|
counterCtrl.o: counterCtrl.c counterCtrl.h counter.h
|
|
$(CC) $(CFLAGS) counterCtrl.c
|
|
|
|
clean:
|
|
rm -f $(EXE) $(OBJS)
|