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