P10 lab code added

This commit is contained in:
Andreas Gieriet
2020-05-10 02:07:29 +02:00
parent c7d4ec972e
commit 382018f539
40 changed files with 1917 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
# Author M. Thaler
# Version v.fs20
CMP= gcc -std=gnu99
CMPFLAGS= -Wall -g
LIB= -pthread
EXENAME1= startApp.e
INCLS= commonDefs.h
FILES= startApp.o coffeeTeller.o customer.o
doit:
@make --no-print-directory clean
@make --no-print-directory coffeeTeller
coffeeTeller: $(FILES)
$(CMP) $(CMPFLAGS) $(FILES) $(LIB) -o $(EXENAME1)
.c.o: $(INCLS)
$(CMP) -c $(CMPFLAGS) $<
.cc.o: $(INCLS)
$(CMP) -c $(CMPFLAGS) $<
all:
@make clean
make doit
clean:
@rm -f *.e *.o
purge:
@make clean