Mercurial > hg > Game > Cerium
view old/simple_pack/Makefile @ 2069:26aa08c9a1de draft default tip
cuda example fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 12 Feb 2017 10:04:55 +0900 |
parents | 3bc98f6d31ff |
children |
line wrap: on
line source
TARGET = test_nogl SRCS = $(wildcard *.cpp) OBJS = $(SRCS:.cpp=.o) TASK_DIR = task TASK_SRCS = $(wildcard $(TASK_DIR)/*.cpp) TASK_OBJS = $(TASK_SRCS:.cpp=.o) CC = g++ CFLAGS = -g -Wall# -DDEBUG INCLUDE = -I../../../include/TaskManager -I. EXTRA_CFLAGS = `sdl-config --cflags` `xml2-config --cflags`\ LIBS = `sdl-config --libs` -lSDL_image -Wl,-framework,OpenGL \ `xml2-config --libs`\ -L../../ -lmanager .SUFFIXES: .cpp .o .cpp.o: $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ all: $(TARGET) $(TARGET): $(OBJS) $(TASK_OBJS) $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) rm -f *~ \#*