diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-11 21:40:28 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-11 21:40:28 -0400 |
commit | 50392995d6e7f3a10fb74bb2f9073a4790f8933c (patch) | |
tree | c89b067b3bacf35e092af5c31fb6e6a08921f31c /lib/jlibc | |
download | jove-env-master.tar.gz jove-env-master.tar.bz2 jove-env-master.zip |
Diffstat (limited to 'lib/jlibc')
-rw-r--r-- | lib/jlibc/Makefile | 12 | ||||
-rw-r--r-- | lib/jlibc/stdlib/exit.c | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/lib/jlibc/Makefile b/lib/jlibc/Makefile new file mode 100644 index 0000000..65e645c --- /dev/null +++ b/lib/jlibc/Makefile @@ -0,0 +1,12 @@ +CFILES := $(wildcard *.c) +CFILES += $(wildcard */*.c) + +OFILES := $(patsubst %.c,%.o,$(CFILES)) + +all: $(OUT) + +$(OUT): ${OFILES} + ar rcs $@ ${OFILES} + +%.o:%.c + $(CC) $(CFLAGS) -c $< -o $@ diff --git a/lib/jlibc/stdlib/exit.c b/lib/jlibc/stdlib/exit.c new file mode 100644 index 0000000..225f74e --- /dev/null +++ b/lib/jlibc/stdlib/exit.c @@ -0,0 +1,5 @@ +__attribute__((noreturn)) +void exit(int status) +{ + +} |