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

41 lines
728 B
Makefile
Raw Permalink Normal View History

2022-02-17 11:45:11 +01:00
# Author M. Thaler InIT/ZHAW
# Version v.fs20
CMP= gcc -std=gnu99
CMPFLAGS= -Wall -g
LIB= -pthread
EXENAME0= startApp.e
EXENAME1= coffeeTeller.e
EXENAME2= customer.e
doit:
@make --no-print-directory clean
@make --no-print-directory startApp
@make --no-print-directory coffeeTeller
@make --no-print-directory customer
startApp: startApp.o
$(CMP) $(CMPFLAGS) startApp.o $(LIB) -o $(EXENAME0)
coffeeTeller: coffeeTeller.o
$(CMP) $(CMPFLAGS) coffeeTeller.o $(LIB) -o $(EXENAME1)
customer: customer.o
$(CMP) $(CMPFLAGS) customer.o $(LIB) -o $(EXENAME2)
.c.o:
$(CMP) -c $(CMPFLAGS) $<
.cc.o:
$(CMP) -c $(CMPFLAGS) $<
all:
@make clean
make doit
clean:
@rm -f *.e *.o
purge:
@make clean