From 9c09879733d871544c28023097e910c3d7e418dc Mon Sep 17 00:00:00 2001 From: Lorenzo Torres Date: Sat, 17 Jan 2026 11:58:41 +0100 Subject: [PATCH] add browser core --- core/main.c | 4 ++++ makefile | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 core/main.c diff --git a/core/main.c b/core/main.c new file mode 100644 index 0000000..31dbf45 --- /dev/null +++ b/core/main.c @@ -0,0 +1,4 @@ +int main(void) +{ + return 0; +} diff --git a/makefile b/makefile index 2c3ea13..ac4c560 100644 --- a/makefile +++ b/makefile @@ -1,17 +1,22 @@ include config.mk SRC_LIB:=lib/sweet.c +SRC:=core/main.c OBJ_LIB:=$(SRC_LIB:.c=.o) +OBJ:=$(SRC:.c=.o) -all: libsweet.a +all: libsweet.a sweet libsweet.a: $(OBJ_LIB) $(AR) $(ARFLAGS) $@ $(OBJ_LIB) +sweet: $(OBJ) libsweet.a + $(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) libsweet.a -o sweet + %.o: %.c $(CC) $(CFLAGS) -c $< -o $@ clean: - @rm -rfv $(OBJ_LIB) libsweet.a + @rm -rfv $(OBJ_LIB) $(OBJ) libsweet.a sweet -.PHONY: clean libsweet.a +.PHONY: clean libsweet.a all sweet