initial
This commit is contained in:
commit
bf9bce08a8
24
Makefile
Normal file
24
Makefile
Normal file
@ -0,0 +1,24 @@
|
||||
CC=g++
|
||||
CFLAGS= -c -g -Wall
|
||||
|
||||
LDLIBS = -lgtk
|
||||
|
||||
TARGET := untap
|
||||
|
||||
BUILD_DIR := ./build
|
||||
SRC_DIRS := ./src
|
||||
|
||||
SRCS := $(shell find $(SRC_DIRS) -name '*.cpp')
|
||||
|
||||
OBJS := $(SRCS:%=$(BUILD_DIR)/%.o)
|
||||
|
||||
$(BUILD_DIR)/$(TARGET): $(OBJS)
|
||||
$(CC) $(OBJS) -o $@ $(LDLIBS)
|
||||
|
||||
$(BUILD_DIR)/%.c.o: %.cpp
|
||||
mkdir -p $(dir $@)
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(BUILD_DIR)
|
0
src/main.cpp
Normal file
0
src/main.cpp
Normal file
Loading…
x
Reference in New Issue
Block a user