28 lines
461 B
Makefile
28 lines
461 B
Makefile
|
### Sample DamnCute Engine based program Makefile ###
|
||
|
|
||
|
SRC = src/main.cpp \
|
||
|
src/Game.cpp
|
||
|
|
||
|
NAME = sample
|
||
|
CXXFLAGS = -Wall -Wextra -ansi -W -O2 -std=c++0x -I./include
|
||
|
CXX = clang++
|
||
|
OBJS = $(SRC:.cpp=.o)
|
||
|
LINKER = $(CXX)
|
||
|
|
||
|
LIB = ./libs
|
||
|
|
||
|
LDFLAGS = -L$(LIB) -Wl,-rpath $(LIB) $(LIB)/*
|
||
|
|
||
|
all: $(NAME)
|
||
|
|
||
|
$(NAME): $(OBJS)
|
||
|
$(LINKER) $(OBJS) $(LDFLAGS) -o $(NAME)
|
||
|
|
||
|
clean:
|
||
|
$(RM) $(OBJS) *.swp *~ *#
|
||
|
|
||
|
fclean: clean
|
||
|
$(RM) $(NAME)
|
||
|
|
||
|
.PHONY: all clean fclean re
|