diff options
Diffstat (limited to 'initrd/Makefile')
-rw-r--r-- | initrd/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/initrd/Makefile b/initrd/Makefile index 705ac6c..5946eee 100644 --- a/initrd/Makefile +++ b/initrd/Makefile @@ -1,6 +1,12 @@ +## +# A simple Makefile for building executables loadable by stmos. +# + +ARCH = arm-stmos- +CC = gcc -mcpu=cortex-m4 -mthumb -fsigned-char +CFLAGS = -Os -fPIE + all: - @arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -fsigned-char -Os \ - -nostdinc -nostdlib \ - -fdata-sections -ffunction-sections -Wl,--gc-sections \ - -I../src/pdclib/include -I../src/pdclib/platform/stmos/include \ - test.c ../src/pdclib/pdclib.a -s -o test + @$(ARCH)$(CC) $(CFLAGS) init.c -o init + @arm-stmos-strip init + |