source: soft/giet_vm/Makefile @ 443

Last change on this file since 443 was 435, checked in by cfuguet, 10 years ago

makefile: adding new CFLAG option to avoid problems with GCC's versions >= 4.9

+ GCC's versions >= 4.9 use a default option:

-fdelete-null-pointer-checks.

This option prohibits the access to the address 0 as this shouldn't
contain any data. The reason is that this address is used to identify
NULL pointers.
When a code contains references to the address 0, GCC is replacing this
code for a trap instruction.

For this reason, the -fno-delete-null-pointer-checks should be
passed in the CFLAGS to avoid this behavior.

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