From 0648818bb141cec9a5513933a3129e965250e19c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 16 Mar 2021 12:25:02 +0100 Subject: Cleanup and atexit --- apps/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/Makefile') diff --git a/apps/Makefile b/apps/Makefile index 2c6c643..1a7aff3 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -5,14 +5,14 @@ CC = ccache ../cross/opt/bin/i686-elf-gcc LD = ccache ../cross/opt/bin/i686-elf-ld OC = ccache ../cross/opt/bin/i686-elf-objcopy -CFLAGS = $(CFLAGS_DEFAULT) -I../libc/inc/ -I../libgui/inc/ -I../libtxt/inc/ -I../libnet/inc/ -fPIE -Duserspace +CFLAGS = $(CFLAGS_DEFAULT) -I../libc/inc/ -I../libgui/inc/ -I../libtxt/inc/ -fPIE -Duserspace all: $(COBJS) %.o: %.c @mkdir -p ../build/apps/ @$(CC) -c $(CFLAGS) $< -o $@ - @$(LD) -o $(@:.o=.elf) -Tlink.ld -L../build/ $@ -lgui -ltxt -lnet -lc + @$(LD) -o $(@:.o=.elf) -Tlink.ld -L../build/ $@ -lgui -ltxt -lc @$(OC) -O binary $(@:.o=.elf) ../build/apps/$(@:.o=) @cp $(@:.o=.elf) ../build/apps/$(@:.o=.elf) -- cgit v1.2.3