Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SRCDIR = ./src
- OBJDIR = ./obj
- BINDIR = ./bin
- INCDIR = ./inc
- EXTLIB = -lboost_regex -lsqlite3 -lcrypt -lboost_system -lboost_filesystem
- CC = g++
- EXEC = drushgui
- SRC = $(wildcard $(SRCDIR)/*.cpp main.cpp)
- OBJ = $(addprefix $(OBJDIR)/,$(notdir $(SRC:.cpp=.o)))
- CXX_FLAGS = -std=c++11 -I$(INCDIR) -Wall
- all: link
- .PHONY : compile
- compile: $(OBJ)
- $(OBJDIR)/%.o: $(SRCDIR)/%.cpp
- $(CC) -c $(CXX_FLAGS) $< -o $@
- $(OBJDIR)/main.o: main.cpp
- $(CC) -c $(CXX_FLAGS) $< -o $@
- .PHONY : link
- link: compile
- $(CC) -o $(BINDIR)/$(EXEC) $(OBJ) $(EXTLIB)
- @echo
- .PHONY : clean
- clean:
- @find -type f -name "$(EXEC)" -delete
- @find -type f -name "*.o" -delete
- @find -type f -name "*~" -delete
- @echo Cleanup Complete.
- install: compile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement