source: soft/giet_vm/Makefile @ 496

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

Cosmetic

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