Initial commit
This commit is contained in:
25
Makefile
Normal file
25
Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
TARGET = cDrive
|
||||
|
||||
SRCS := src src/drive
|
||||
|
||||
VPATH := $(foreach dir,$(SRCS),$(CURDIR)/$(dir))
|
||||
CFILES := $(foreach dir,$(SRCS),$(notdir $(wildcard $(dir)/*.c)))
|
||||
CPPFILES := $(foreach dir,$(SRCS),$(notdir $(wildcard $(dir)/*.cpp)))
|
||||
OFILES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o)
|
||||
|
||||
INCLUDES := -I$(CURDIR)/include
|
||||
CFLAGS := -g -Wall $(INCLUDES) `curl-config --cflags`
|
||||
CXXFLAGS := $(CFLAGS) -fno-rtti -std=c++17
|
||||
LDFLAGS := `curl-config --libs` -lqrcodegen -lmbedcrypto
|
||||
|
||||
.PHONY: all
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OFILES)
|
||||
$(CXX) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
run: all
|
||||
@./$(TARGET)
|
||||
|
||||
clean:
|
||||
$(RM) -fr $(BUILD) $(TARGET)
|
||||
Reference in New Issue
Block a user