SMR_TP_reactive/Makefile
2019-12-08 17:01:53 +01:00

16 lines
405 B
Makefile
Executable File

MASTERNAME = master
SLAVENAME = slave
SRC_DIR = src
BUILD_DIR = build
all : $(BUILD_DIR)/$(MASTERNAME) $(BUILD_DIR)/$(SLAVENAME)
$(BUILD_DIR)/$(MASTERNAME) : $(SRC_DIR)/$(MASTERNAME)
gcc -o $(BUILD_DIR)/$(MASTERNAME) $(SRC_DIR)/$(MASTERNAME).c
$(BUILD_DIR)/$(SLAVENAME) : $(SRC_DIR)/$(SLAVENAME)
gcc -o $(BUILD_DIR)/$(SLAVENAME) $(SRC_DIR)/$(SLAVENAME).c
clean :
rm $(BUILD_DIR)/*