16 lines
405 B
Makefile
16 lines
405 B
Makefile
|
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)/*
|