view old/simple_render/test/LoadTexture/Makefile @ 507:735f76483bb2

Reorganization..
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 09:39:35 +0900
parents TaskManager/Test/simple_render/test/LoadTexture/Makefile@32be65e25785
children
line wrap: on
line source

TARGET = test_nogl

SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)

TASK_OBJS = $(TASK_SRCS:.cpp=.o)

CC      = g++
CFLAGS  =  -g -O9 -Wall -DDEBUG
INCLUDE = -I../../../../../include/TaskManager -I.

EXTRA_CFLAGS = `sdl-config --cflags` `xml2-config --cflags`\

EXTRA_LIBS = -lCellManager -lspe2 -lpthread
#EXTRA_LIBS = -lFifoManager

LIBS = `sdl-config --libs` -lSDL_image -lGL \
       `xml2-config --libs` -L../../../.. $(EXTRA_LIBS)

.SUFFIXES: .cpp .o

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

all: $(TARGET)

$(TARGET): $(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 *~ \#*