view old/simple_render/spe/Makefile @ 1740:5a294d8e5643 draft

fix
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Tue, 12 Nov 2013 16:56:43 +0900
parents a0ea7d9b6faf
children
line wrap: on
line source

TARGET = ../spe-main

SRCS_TMP = $(wildcard *.cpp)
SRCS_EXCLUDE = CreatePolygonPack.cpp # 除外
SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
OBJS = $(SRCS:.cpp=.o)

CC      = spu-g++
CFLAGS  = -O9 -g -Wall -fno-exceptions -fno-rtti #-DDEBUG
INCLUDE = -I../../../../include/TaskManager -I. -I..
LIBS    = -L../../.. -lspemanager# -lm

#EXTRA_CFLAGS = `sdl-config --cflags`
#EXTRA_LIBS   = `sdl-config --libs`

.SUFFIXES: .cpp .o

.cpp.o:
	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) $(EXTRA_LIBS)

clean:
	rm -f $(TARGET) $(OBJS)
	rm -f *~ \#*