DamnCute/assets/linux/Makefile

28 lines
461 B
Makefile
Raw Normal View History

2016-05-29 16:10:44 +00:00
### 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