snp-lab-code/P08_Sync/work/Sync/mutex/makefile

34 lines
513 B
Makefile
Raw Permalink Normal View History

2022-02-17 11:45:11 +01:00
# 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