Mercurial > hg > Game > Cerium
annotate TaskManager/Makefile.gpu @ 1880:a865ba7acb08 draft
free_ TaskList breaks next. Use it before free_.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 02 Jan 2014 21:46:22 +0900 |
parents | cf475f0a9b80 |
children | 5238ca826d6e |
rev | line source |
---|---|
1439 | 1 include ./Makefile.def |
2 TARGET = libGpuManager.a | |
3 CFLAGS += -DHAS_POSIX_MEMALIGN | |
4 | |
5 ifdef LINUX | |
6 CFLAGS += -lrt | |
7 endif | |
8 | |
9 .SUFFIXES: .cc .o | |
10 | |
1487
6b451d72daf5
normal task run on GPU.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1481
diff
changeset
|
11 EXTRA_CFLAGS = -D__CERIUM_GPU__ -D__CERIUM_PARALLEL__ |
1439 | 12 |
13 .cc.o: | |
14 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ | |
15 | |
16 | |
17 all: default | |
18 default: $(TARGET) | |
19 | |
20 ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) \ | |
21 $(KERN_SYSTASK_OBJS) $(IMPL_FIFO_OBJS) $(KERN_MEM_OBJS) \ | |
1489 | 22 $(IMPL_GPU_OBJS) Cell/spe/SpeTaskManagerImpl.o Cell/CellTaskManagerImpl.o |
1439 | 23 |
24 Makefile.dep: | |
25 make -f Makefile.gpu depend | |
26 | |
27 depend: | |
28 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) $(ALL_OBJS:.o=.cc) -MM > Makefile.dep | |
29 | |
30 $(TARGET): $(ALL_OBJS) | |
31 ar crus $@ $(ALL_OBJS) | |
32 | |
33 gpudistclean: gpuclean | |
34 rm -f $(TARGET) | |
35 | |
36 gpuclean: | |
1489 | 37 rm -f $(TARGET) $(ALL_OBJS) |