Edited Makefile to compite ui socket.
This commit is contained in:
parent
e2014f03f1
commit
3cbe520916
5
Makefile
5
Makefile
@ -22,7 +22,7 @@ endif
|
|||||||
SOURCES_DIR := ./sources
|
SOURCES_DIR := ./sources
|
||||||
BUILD_DIR := ./build
|
BUILD_DIR := ./build
|
||||||
|
|
||||||
build: $(BUILD_DIR)/main.o $(BUILD_DIR)/sourcefs.o
|
build: $(BUILD_DIR)/main.o $(BUILD_DIR)/sourcefs.o $(BUILD_DIR)/ui-socket.o
|
||||||
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $(BUILD_DIR)/icfs
|
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $(BUILD_DIR)/icfs
|
||||||
|
|
||||||
$(BUILD_DIR)/main.o: $(SOURCES_DIR)/main.c
|
$(BUILD_DIR)/main.o: $(SOURCES_DIR)/main.c
|
||||||
@ -31,5 +31,8 @@ $(BUILD_DIR)/main.o: $(SOURCES_DIR)/main.c
|
|||||||
$(BUILD_DIR)/sourcefs.o: $(SOURCES_DIR)/sourcefs.c $(SOURCES_DIR)/sourcefs.h
|
$(BUILD_DIR)/sourcefs.o: $(SOURCES_DIR)/sourcefs.c $(SOURCES_DIR)/sourcefs.h
|
||||||
$(CC) $(CFLAGS) -c $< $(LDFLAGS) -o $@
|
$(CC) $(CFLAGS) -c $< $(LDFLAGS) -o $@
|
||||||
|
|
||||||
|
$(BUILD_DIR)/ui-socket.o: $(SOURCES_DIR)/ui-socket.c $(SOURCES_DIR)/ui-socket.h
|
||||||
|
$(CC) $(CFLAGS) -c $< $(LDFLAGS) -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(BUILD_DIR)/*
|
rm $(BUILD_DIR)/*
|
||||||
|
Loading…
Reference in New Issue
Block a user