aboutsummaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/Makefile')
-rw-r--r--apps/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 91d7920..8c5ecac 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -5,12 +5,12 @@ CC = ../cross/opt/bin/i686-elf-gcc
LD = ../cross/opt/bin/i686-elf-ld
OC = ../cross/opt/bin/i686-elf-objcopy
-CFLAGS = $(CSFLAGS) -Wall -Wextra -nostdlib -nostdinc -ffreestanding -ffunction-sections -fno-builtin -std=c99 -m32 -pedantic-errors -I../src/lib/inc/ -fPIE
+CFLAGS = $(CSFLAGS) -Wall -Wextra -nostdlib -nostdinc -ffreestanding -ffunction-sections -fno-builtin -std=c99 -m32 -pedantic-errors -I../lib/inc/ -fPIE
all: $(COBJS)
%.o: %.c
@mkdir -p ../build/apps/
@$(CC) -c $(CFLAGS) $< -o $@
- @$(LD) -o $(@:.o=.elf) -Tlink.ld $@
+ @$(LD) -o $(@:.o=.elf) -Tlink.ld -L../build/ $@ -lc
@$(OC) -O binary $(@:.o=.elf) ../build/apps/$(@:.o=)