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
|
|
11 EXTRA_CFLAGS = -D__CERIUM_GPU__
|
|
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) \
|
|
22 $(IMPL_GPU_OBJS) \
|
|
23 Cell/spe/SpeTaskManagerImpl.o Cell/CellTaskManagerImpl.o
|
|
24
|
|
25 Makefile.dep:
|
|
26 make -f Makefile.gpu depend
|
|
27
|
|
28 depend:
|
|
29 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) $(ALL_OBJS:.o=.cc) -MM > Makefile.dep
|
|
30
|
|
31 $(TARGET): $(ALL_OBJS)
|
|
32 ar crus $@ $(ALL_OBJS)
|
|
33
|
|
34 gpudistclean: gpuclean
|
|
35 rm -f $(TARGET)
|
|
36
|
|
37 gpuclean:
|