source: soft/giet_vm/Makefile @ 510

Last change on this file since 510 was 510, checked in by alain, 9 years ago

Update Makefile.

File size: 21.5 KB
RevLine 
[302]1-include build.mk
2
[162]3export # export all variable to sub-Makefile
[232]4CC = mipsel-unknown-elf-gcc
5AS = mipsel-unknown-elf-as
6LD = mipsel-unknown-elf-ld
7DU = mipsel-unknown-elf-objdump
[380]8AR = mipsel-unknown-elf-ar
[158]9
[463]10# Parameters definition
[420]11ARCH      ?= ../tsar-trunk-svn-2013/platforms/tsar_generic_iob
[510]12X_SIZE    ?= 4
13Y_SIZE    ?= 4
14NB_PROCS  ?= 4
[463]15NB_TTYS   ?= 1
16FBF_WIDTH ?= 128
[510]17APP       ?= sort
[326]18
[510]19
[326]20.PHONY: map.bin
21
[258]22### FAT parameters definition for Disk image
23### sector_size          = 512
24### partition_begin_lba  = 300
25### sector_per_cluster   = 8
26### partition sectors    = 524832
[204]27
[463]28### Objects to be linked for the drivers library
[380]29DRIVERS_OBJS = build/drivers/dma_driver.o \
[295]30               build/drivers/cma_driver.o \
[258]31               build/drivers/xcu_driver.o \
32               build/drivers/ioc_driver.o \
[289]33               build/drivers/bdv_driver.o \
34               build/drivers/hba_driver.o \
35               build/drivers/sdc_driver.o \
36               build/drivers/spi_driver.o \
[295]37               build/drivers/rdk_driver.o \
[258]38               build/drivers/iob_driver.o \
39               build/drivers/mmc_driver.o \
40               build/drivers/mwr_driver.o \
41               build/drivers/nic_driver.o \
42               build/drivers/tim_driver.o \
43               build/drivers/tty_driver.o \
[380]44               build/drivers/pic_driver.o
45
46### Objects to be linked for kernel.elf
[510]47KERNEL_OBJS  = build/common/utils.o            \
48               build/common/kernel_locks.o     \
49               build/common/kernel_barriers.o  \
50               build/common/tty0.o             \
51               build/common/vmem.o             \
52               build/common/kernel_malloc.o    \
53               build/fat32/fat32.o             \
54               build/kernel/giet.o             \
55               build/kernel/switch.o           \
56               build/kernel/ctx_handler.o      \
57               build/kernel/exc_handler.o      \
58               build/kernel/sys_handler.o      \
59               build/kernel/irq_handler.o      \
[258]60               build/kernel/kernel_init.o
[162]61
[258]62### Objects to be linked for boot.elf
[510]63BOOT_OBJS    = build/common/utils.o            \
64               build/common/kernel_locks.o     \
65               build/common/kernel_barriers.o  \
66               build/common/tty0.o             \
67               build/common/pmem.o             \
68               build/common/vmem.o             \
69               build/common/kernel_malloc.o    \
70               build/fat32/fat32.o             \
71               build/kernel/ctx_handler.o      \
72               build/kernel/switch.o           \
73               build/boot/boot.o               \
[366]74               build/boot/boot_entry.o
[258]75
76### Objects to be linked for display.elf
[189]77DISPLAY_OBJS = build/display/main.o \
[258]78               build/libs/stdio.o
[162]79
[258]80### Objects to be linked for router.elf
81ROUTER_OBJS  = build/router/main.o        \
82               build/libs/mwmr_channel.o  \
[463]83               build/libs/user_lock.o     \
[258]84               build/libs/stdio.o
[162]85
[258]86### Objects to be linked for hello.elf
87HELLO_OBJS   = build/hello/main.o   \
88               build/libs/stdio.o         
[158]89
[258]90### Objects to be linked for pgcd.elf
[510]91PGCD_OBJS    = build/pgcd/main.o \
[258]92               build/libs/stdio.o
[158]93
[258]94### Objects to be linked for game.elf
[510]95GAMEOFLIFE_OBJS = build/gameoflife/main.o   \
96                  build/libs/stdio.o        \
97                  build/libs/user_barrier.o \
98                  build/libs/malloc.o       \
[463]99                  build/libs/user_lock.o
[374]100                 
[251]101
[258]102### Objects to be linked for dhrystone.elf
[241]103DHRYSTONE_OBJS = build/dhrystone/dhry_1.o \
104                 build/dhrystone/dhry_2.o \
[272]105                 build/libs/stdlib.o      \
[258]106                 build/libs/stdio.o       \
107                 build/libs/string.o      \
[463]108                 build/libs/user_lock.o   \
[241]109                 build/libs/malloc.o
[463]110       
[258]111### Objects to be linked for sort.elf
[374]112SORT_OBJS   = build/sort/main.o          \
113              build/libs/stdio.o         \
[510]114              build/libs/user_barrier.o  \
[389]115              build/libs/malloc.o        \
[463]116              build/libs/user_lock.o
[241]117
[295]118### Objects to be linked for transpose.elf
[510]119TRANSPOSE_OBJS = build/transpose/main.o    \
120                 build/libs/stdio.o        \
121                 build/libs/user_barrier.o \
122                 build/libs/malloc.o       \
[463]123                 build/libs/user_lock.o
[258]124
[339]125### Objects to be linked for convol.elf
[389]126CONVOL_OBJS  = build/convol/main.o       \
127               build/libs/stdio.o        \
128               build/libs/stdlib.o       \
[510]129               build/libs/user_barrier.o \
[389]130               build/libs/malloc.o       \
[463]131               build/libs/user_lock.o
[339]132
[463]133### Objects to be linked for classif.elf
134CLASSIF_OBJS  = build/classif/main.o      \
135                build/libs/stdio.o        \
136                build/libs/mwmr_channel.o \
[510]137                build/libs/user_barrier.o \
[463]138                build/libs/malloc.o       \
139                build/libs/user_lock.o
140
[435]141CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g -O2 \
142                 -fno-delete-null-pointer-checks
[158]143
[258]144GIET_INCLUDE = -Igiet_boot    \
145               -Igiet_kernel  \
146               -Igiet_xml     \
147               -Igiet_fat32   \
148               -Igiet_drivers \
149               -Igiet_common  \
150               -Igiet_libs    \
151               -I.
[158]152
[258]153USER_INCLUDE = -Igiet_libs    \
154               -Igiet_xml     \
155               -I.
[160]156
[302]157DISK_IMAGE  := hdd/virt_hdd.dmg
158
[326]159all: map.bin                         \
160     hard_config.h                   \
161     giet_vsegs.ld                   \
[258]162     build/boot/boot.elf             \
163     build/kernel/kernel.elf         \
164     build/display/display.elf       \
165     build/hello/hello.elf           \
166     build/pgcd/pgcd.elf             \
[302]167     build/router/router.elf         \
[258]168     build/dhrystone/dhrystone.elf   \
169     build/gameoflife/gameoflife.elf \
170     build/sort/sort.elf             \
[295]171     build/transpose/transpose.elf   \
[339]172     build/convol/convol.elf         \
[463]173     build/router/router.elf         \
174     build/classif/classif.elf       \
[326]175     $(DISK_IMAGE)                   
[302]176         
[364]177### Copy always all files into disk image
[304]178        mcopy -o -i $(DISK_IMAGE) build/kernel/kernel.elf ::/build/kernel
179        mcopy -o -i $(DISK_IMAGE) build/display/display.elf ::/build/display
180        mcopy -o -i $(DISK_IMAGE) build/sort/sort.elf ::/build/sort
181        mcopy -o -i $(DISK_IMAGE) build/transpose/transpose.elf ::/build/transpose
[339]182        mcopy -o -i $(DISK_IMAGE) build/convol/convol.elf ::/build/convol
[463]183        mcopy -o -i $(DISK_IMAGE) build/classif/classif.elf ::/build/classif
[304]184        mcopy -o -i $(DISK_IMAGE) build/hello/hello.elf ::/build/hello
185        mcopy -o -i $(DISK_IMAGE) build/pgcd/pgcd.elf ::/build/pgcd
186        mcopy -o -i $(DISK_IMAGE) build/router/router.elf ::/build/router
187        mcopy -o -i $(DISK_IMAGE) build/gameoflife/gameoflife.elf ::/build/gameoflife
188        mcopy -o -i $(DISK_IMAGE) build/dhrystone/dhrystone.elf ::/build/dhrystone
[432]189        mcopy -o -i $(DISK_IMAGE) applications/transpose/images.raw ::/misc
190        mcopy -o -i $(DISK_IMAGE) applications/convol/philips_image.raw ::/misc
[304]191        mcopy -o -i $(DISK_IMAGE) map.bin ::/
[364]192### Copy bootloader into sector 2 of disk image
[302]193        dd if=build/boot/boot.elf of=$(DISK_IMAGE) seek=2 conv=notrunc
[364]194### Checking root directory
[366]195        mdir -/ -b -i $(DISK_IMAGE) ::/
[160]196
[364]197### Disk image generation (no files in this step)
[272]198### This requires the generic LINUX/MacOS script "create_dmg" script
[258]199### written by C.Fuguet. (should be installed in GIET-VM root directory).
[302]200$(DISK_IMAGE):
201        ./create_dmg create $(basename $(DISK_IMAGE))
[304]202        mmd -o -i $(DISK_IMAGE) ::/build
203        mmd -o -i $(DISK_IMAGE) ::/build/kernel
204        mmd -o -i $(DISK_IMAGE) ::/build/display
205        mmd -o -i $(DISK_IMAGE) ::/build/sort 
206        mmd -o -i $(DISK_IMAGE) ::/build/transpose
[339]207        mmd -o -i $(DISK_IMAGE) ::/build/convol
[463]208        mmd -o -i $(DISK_IMAGE) ::/build/classif
[304]209        mmd -o -i $(DISK_IMAGE) ::/build/hello
210        mmd -o -i $(DISK_IMAGE) ::/build/pgcd 
211        mmd -o -i $(DISK_IMAGE) ::/build/router
212        mmd -o -i $(DISK_IMAGE) ::/build/gameoflife
213        mmd -o -i $(DISK_IMAGE) ::/build/dhrystone
214        mmd -o -i $(DISK_IMAGE) ::/misc
215        dd if=$(DISK_IMAGE) of=temp.dmg count=65536
216        mv temp.dmg $(DISK_IMAGE)
[295]217
[326]218### mapping generation: map.bin / map.xml / hard_config.h / giet_vsegs.ld
[432]219map.bin hard_config.h giet_vsegs.ld: $(ARCH)/arch.py  applications/$(APP)/$(APP).py
[510]220        giet_python/genmap --arch=$(ARCH)     \
221                       --x=$(X_SIZE)      \
222                       --y=$(Y_SIZE)      \
223                       --p=$(NB_PROCS)    \
224                       --tty=$(NB_TTYS)   \
225                       --fbf=$(FBF_WIDTH) \
226                       --giet=.           \
227                       --$(APP)           \
228                       --xml=.
[158]229
[258]230### drivers compilation
[295]231build/drivers/cma_driver.o: giet_drivers/cma_driver.c  \
232                            giet_drivers/cma_driver.h  \
[326]233                            hard_config.h              \
234                            giet_config.h
[295]235        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
236
[258]237build/drivers/dma_driver.o: giet_drivers/dma_driver.c  \
238                            giet_drivers/dma_driver.h  \
[326]239                            hard_config.h              \
240                            giet_config.h
[258]241        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
[158]242
[258]243build/drivers/xcu_driver.o: giet_drivers/xcu_driver.c  \
244                            giet_drivers/xcu_driver.h  \
[326]245                            hard_config.h              \
246                            giet_config.h
[258]247        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
[158]248
[258]249build/drivers/ioc_driver.o: giet_drivers/ioc_driver.c  \
250                            giet_drivers/ioc_driver.h  \
[326]251                            hard_config.h              \
252                            giet_config.h
[258]253        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
254
[289]255build/drivers/bdv_driver.o: giet_drivers/bdv_driver.c  \
256                            giet_drivers/bdv_driver.h  \
[326]257                            hard_config.h              \
258                            giet_config.h
[289]259        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
260
261build/drivers/hba_driver.o: giet_drivers/hba_driver.c  \
262                            giet_drivers/hba_driver.h  \
[326]263                            hard_config.h              \
264                            giet_config.h
[289]265        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
266
267build/drivers/sdc_driver.o: giet_drivers/sdc_driver.c  \
268                            giet_drivers/sdc_driver.h  \
[326]269                            hard_config.h              \
270                            giet_config.h
[289]271        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
272
273build/drivers/spi_driver.o: giet_drivers/spi_driver.c  \
274                            giet_drivers/spi_driver.h  \
[326]275                            hard_config.h              \
276                            giet_config.h
[289]277        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
278
[295]279build/drivers/rdk_driver.o: giet_drivers/rdk_driver.c  \
280                            giet_drivers/rdk_driver.h  \
[326]281                            hard_config.h              \
282                            giet_config.h
[295]283        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
284
[258]285build/drivers/iob_driver.o: giet_drivers/iob_driver.c  \
286                            giet_drivers/iob_driver.h  \
[326]287                            hard_config.h              \
288                            giet_config.h
[258]289        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
290
291build/drivers/mmc_driver.o: giet_drivers/mmc_driver.c  \
292                            giet_drivers/mmc_driver.h  \
[326]293                            hard_config.h              \
294                            giet_config.h
[258]295        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
296
297build/drivers/mwr_driver.o: giet_drivers/mwr_driver.c  \
298                            giet_drivers/mwr_driver.h  \
[326]299                            hard_config.h              \
300                            giet_config.h
[258]301        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
302
303build/drivers/nic_driver.o: giet_drivers/nic_driver.c  \
304                            giet_drivers/nic_driver.h  \
[326]305                            hard_config.h              \
306                            giet_config.h
[258]307        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
308
309build/drivers/tim_driver.o: giet_drivers/tim_driver.c  \
310                            giet_drivers/tim_driver.h  \
[326]311                            hard_config.h              \
312                            giet_config.h
[258]313        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
314
315build/drivers/tty_driver.o: giet_drivers/tty_driver.c  \
316                            giet_drivers/tty_driver.h  \
[326]317                            hard_config.h              \
318                            giet_config.h
[258]319        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
320
[295]321build/drivers/pic_driver.o: giet_drivers/pic_driver.c  \
322                            giet_drivers/pic_driver.h  \
[326]323                            hard_config.h              \
324                            giet_config.h
[295]325        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
326
[380]327################################
328### drivers library compilation
329build/drivers/libdrivers.a: $(DRIVERS_OBJS)
330        $(AR) -rcs $@ $(DRIVERS_OBJS)
331
[374]332##########################
333### common compilation
[258]334build/fat32/fat32.o: giet_fat32/fat32.c \
335                     giet_fat32/fat32.h \
[326]336                     hard_config.h      \
337                     giet_config.h
[258]338        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
339
340build/common/utils.o: giet_common/utils.c \
341                      giet_common/utils.h \
[326]342                      hard_config.h       \
343                      giet_config.h
[258]344        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
345
[510]346build/common/kernel_locks.o: giet_common/kernel_locks.c \
347                             giet_common/kernel_locks.h \
348                             hard_config.h              \
349                             giet_config.h
[463]350        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
351
[510]352build/common/kernel_barriers.o: giet_common/kernel_barriers.c \
353                                giet_common/kernel_barriers.h \
354                                hard_config.h                 \
355                                giet_config.h
356        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
357
[463]358build/common/tty0.o:  giet_common/tty0.c \
359                      giet_common/tty0.h \
360                      hard_config.h       \
361                      giet_config.h
362        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
363
[258]364build/common/vmem.o: giet_common/vmem.c \
365                     giet_common/vmem.h \
[326]366                     hard_config.h      \
367                     giet_config.h
[258]368        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
369
[418]370build/common/pmem.o: giet_common/pmem.c \
371                     giet_common/pmem.h \
372                     hard_config.h      \
373                     giet_config.h
374        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
375
[482]376build/common/kernel_malloc.o: giet_common/kernel_malloc.c \
[510]377                              giet_common/kernel_malloc.h \
378                              hard_config.h               \
379                              giet_config.h
[482]380        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
381
[374]382########################
[177]383### boot compilation
[326]384build/boot/boot.elf: $(BOOT_OBJS)            \
[380]385                     giet_boot/boot.ld       \
386                     build/drivers/libdrivers.a
387        $(LD) -o $@ -T giet_boot/boot.ld $(BOOT_OBJS) -Lbuild/drivers -ldrivers 
[189]388        $(DU) -D $@ > $@.txt
[158]389
[258]390build/boot/boot.o: giet_boot/boot.c          \
391                   giet_common/utils.h       \
392                   giet_fat32/fat32.h        \
[289]393                   giet_common/vmem.h        \
[258]394                   giet_drivers/tty_driver.h \
395                   giet_drivers/ioc_driver.h \
[326]396                   hard_config.h             \
[366]397                   giet_config.h
[258]398        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
[158]399
[366]400build/boot/boot_entry.o: giet_boot/boot_entry.S \
401                         hard_config.h
402        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
403
[374]404#########################
[258]405### kernel compilation
[326]406build/kernel/kernel.elf: $(KERNEL_OBJS)        \
[380]407                         giet_kernel/kernel.ld \
408                         build/drivers/libdrivers.a
409        $(LD) -o $@ -T giet_kernel/kernel.ld $(KERNEL_OBJS) -Lbuild/drivers -ldrivers   
[258]410        $(DU) -D $@ > $@.txt
[158]411
[326]412build/kernel/%.o: giet_kernel/%.c    \
413                  hard_config.h      \
414                  giet_config.h 
[258]415        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
416
[326]417build/kernel/%.o: giet_kernel/%.s    \
418                  hard_config.h      \
419                  giet_config.h
[258]420        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
421
[374]422###########################
423### user libs compilation
[258]424build/libs/stdio.o: giet_libs/stdio.c \
425                    giet_libs/stdio.h \
[326]426                    hard_config.h     \
[258]427                    giet_config.h 
428        $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $<
429
430build/libs/mwmr_channel.o: giet_libs/mwmr_channel.c \
431                           giet_libs/mwmr_channel.h \
[326]432                           hard_config.h            \
[258]433                           giet_config.h
434        $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $<
435
436build/libs/malloc.o: giet_libs/malloc.c         \
437                     giet_libs/malloc.h         \
[326]438                     hard_config.h              \
[258]439                     giet_config.h
440        $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $<
441
[510]442build/libs/user_barrier.o: giet_libs/user_barrier.c \
443                           giet_libs/user_barrier.h \
444                           hard_config.h       \
445                           giet_config.h
[258]446        $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $<
447
[259]448build/libs/stdlib.o: giet_libs/stdlib.c \
449                     giet_libs/stdlib.h \
[326]450                     hard_config.h      \
[259]451                     giet_config.h
452        $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $<
453
[258]454build/libs/string.o: giet_libs/string.c \
455                     giet_libs/string.h \
[326]456                     hard_config.h      \
[258]457                     giet_config.h
458        $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $<
459
[463]460build/libs/user_lock.o: giet_libs/user_lock.c \
461                        giet_libs/user_lock.h \
[326]462                        hard_config.h         \
[258]463                        giet_config.h
464        $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $<
465
[374]466########################################
467### display application compilation
[432]468build/display/display.elf: $(DISPLAY_OBJS) applications/display/display.ld hard_config.h
469        $(LD) -o $@ -T applications/display/display.ld $(DISPLAY_OBJS)
[189]470        $(DU) -D $@ > $@.txt
[158]471
[445]472build/display/main.o: applications/display/main.c
[258]473        $(CC) $(USER_INCLUDE) $(CFLAGS)  -c -o $@ $<
[189]474
[374]475########################################
[189]476### router compilation
[432]477build/router/router.elf: $(ROUTER_OBJS) applications/router/router.ld hard_config.h
478        $(LD) -o $@ -T applications/router/router.ld $(ROUTER_OBJS)
[189]479        $(DU) -D $@ > $@.txt
480
[432]481build/router/main.o: applications/router/main.c
[258]482        $(CC) $(USER_INCLUDE) $(CFLAGS)  -c -o $@ $<
[189]483
[374]484########################################
[189]485### hello compilation
[432]486build/hello/hello.elf: $(HELLO_OBJS) applications/hello/hello.ld hard_config.h
487        $(LD) -o $@ -T applications/hello/hello.ld $(HELLO_OBJS)
[189]488        $(DU) -D $@ > $@.txt
489
[432]490build/hello/main.o: applications/hello/main.c
[258]491        $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $<
[189]492
[374]493########################################
[189]494### pgcd compilation
[432]495build/pgcd/pgcd.elf: $(PGCD_OBJS) applications/pgcd/pgcd.ld hard_config.h
496        $(LD) -o $@ -T applications/pgcd/pgcd.ld $(PGCD_OBJS)
[189]497        $(DU) -D $@ > $@.txt
498
[432]499build/pgcd/main.o: applications/pgcd/main.c
[258]500        $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $<
[189]501
[374]502########################################
[251]503### gameoflife compilation
[432]504build/gameoflife/gameoflife.elf: $(GAMEOFLIFE_OBJS) applications/gameoflife/gameoflife.ld
505        $(LD) -o $@ -T applications/gameoflife/gameoflife.ld $(GAMEOFLIFE_OBJS)
[251]506        $(DU) -D $@ > $@.txt
507
[432]508build/gameoflife/main.o: applications/gameoflife/main.c
[258]509        $(CC) $(USER_INCLUDE) $(CFLAGS) -O3 -c -o $@ $<
[251]510
[374]511########################################
[241]512### dhrystone compilation
[432]513build/dhrystone/dhrystone.elf: $(DHRYSTONE_OBJS) applications/dhrystone/dhrystone.ld hard_config.h
514        $(LD) -o $@ -T applications/dhrystone/dhrystone.ld $(DHRYSTONE_OBJS)
[241]515        $(DU) -D $@ > $@.txt
516
[432]517build/dhrystone/dhry_1.o: applications/dhrystone/dhry_1.c
[258]518        $(CC) $(USER_INCLUDE) $(CFLAGS)  -c -o $@ $<
[241]519
[432]520build/dhrystone/dhry_2.o: applications/dhrystone/dhry_2.c
[258]521        $(CC) $(USER_INCLUDE) $(CFLAGS)  -c -o $@ $<
[241]522
[374]523########################################
[256]524### sort compilation
[432]525build/sort/sort.elf: $(SORT_OBJS) applications/sort/sort.ld hard_config.h
526        $(LD) -o $@ -T applications/sort/sort.ld $(SORT_OBJS)
[256]527        $(DU) -D $@ > $@.txt
528
[432]529build/sort/main.o: applications/sort/main.c
[258]530        $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $<
[256]531
[374]532########################################
[295]533### transpose compilation
[432]534build/transpose/transpose.elf: $(TRANSPOSE_OBJS) applications/transpose/transpose.ld hard_config.h
535        $(LD) -o $@ -T applications/transpose/transpose.ld $(TRANSPOSE_OBJS)
[295]536        $(DU) -D $@ > $@.txt
537
[432]538build/transpose/main.o: applications/transpose/main.c
[295]539        $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $<
540
[374]541########################################
[339]542### convol compilation
[432]543build/convol/convol.elf: $(CONVOL_OBJS) applications/convol/convol.ld hard_config.h
544        $(LD) -o $@ -T applications/convol/convol.ld $(CONVOL_OBJS)
[339]545        $(DU) -D $@ > $@.txt
546
[432]547build/convol/main.o: applications/convol/main.c
[364]548        $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $<
[339]549
[374]550########################################
[463]551### classif compilation
552build/classif/classif.elf: $(CLASSIF_OBJS) applications/classif/classif.ld hard_config.h
553        $(LD) -o $@ -T applications/classif/classif.ld $(CLASSIF_OBJS)
554        $(DU) -D $@ > $@.txt
555
556build/classif/main.o: applications/classif/main.c
557        $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $<
558
559########################################
[177]560### clean
[158]561clean:
[326]562        rm -f *.o *.elf *.bin *.txt core 
563        rm -f hard_config.h giet_vsegs.ld map.bin map.xml
[232]564        rm -rf build/boot/*
[258]565        rm -rf build/fat32/*
566        rm -rf build/common/*
567        rm -rf build/drivers/*
568        rm -rf build/kernel/*
569        rm -rf build/reset/*
[232]570        rm -rf build/libs/*
571        rm -rf build/pgcd/*
572        rm -rf build/hello/*
573        rm -rf build/display/*
574        rm -rf build/router/*
[251]575        rm -rf build/gameoflife/*
[241]576        rm -rf build/dhrystone/*
[258]577        rm -rf build/sort/*
[295]578        rm -rf build/transpose/*
[339]579        rm -rf build/convol/*
[463]580        rm -rf build/classif/*
[366]581        rm -rf $(DISK_IMAGE)
Note: See TracBrowser for help on using the repository browser.