aboutsummaryrefslogtreecommitdiff
path: root/libs/libnet/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libnet/Makefile')
-rw-r--r--libs/libnet/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/libs/libnet/Makefile b/libs/libnet/Makefile
index 7094875..53cb7a9 100644
--- a/libs/libnet/Makefile
+++ b/libs/libnet/Makefile
@@ -1,11 +1,8 @@
# MIT License, Copyright (c) 2020 Marvin Borner
COBJS = dns.o http.o ip.o
-CC = ccache ../../cross/opt/bin/i686-elf-gcc
-LD = ccache ../../cross/opt/bin/i686-elf-ld
-AR = ccache ../../cross/opt/bin/i686-elf-ar
-CFLAGS = $(CFLAGS_DEFAULT) -I../ -I../libc/inc/ -pie -fPIE -fPIC -DUSER
+CFLAGS = $(CFLAGS_DEFAULT) -I$(LIBS) -I$(LIBS)/libc/inc/ -pie -fPIE -fPIC -DUSER
all: libtxt
@@ -13,8 +10,8 @@ all: libtxt
@$(CC) -c $(CFLAGS) $< -o $@
libtxt: $(COBJS)
- @mkdir -p ../../build/
- @$(AR) rcs ../../build/libnet.a $+
+ @mkdir -p $(BUILD)
+ @$(AR) rcs $(BUILD)/libnet.a $+
clean:
@find . -name "*.o" -type f -delete