Mercurial > hg > Game > Cerium
view old/simple_render/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 | a0ea7d9b6faf |
children |
line wrap: on
line source
TARGET = test_nogl SRCS_TMP = $(wildcard *.cpp) SRCS_EXCLUDE = fb.cpp # 除外 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) OBJS = $(SRCS:.cpp=.o) TASK_DIR = task TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp) #TASK_SRCS_EXCLUDE = span_pack_draw.cpp TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) 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` -I/usr/local/include/SDL #EXTRA_LIBS = -lCellManager -lspe2 -lpthread EXTRA_LIBS = -lFifoManager #LIBS = `sdl-config --libs` /usr/local/lib/libSDL_image.a -lGL \ # `xml2-config --libs` -L../.. $(EXTRA_LIBS) LIBS = `sdl-config --libs` -lSDL_image -Wl,-framework,OpenGL \ `xml2-config --libs` -L../.. $(EXTRA_LIBS) .SUFFIXES: .cpp .o .cpp.o: $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ all: $(TARGET) $(TARGET): $(OBJS) $(TASK_OBJS) $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) link: $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) run: $(TARGET) sudo ./$(TARGET) -width 576 -height 384 -bpp 32 debug: $(TARGET) sudo ppu-gdb ./$(TARGET) clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) rm -f *~ \#*