diff options
Diffstat (limited to 'lib/jlibc/Makefile')
-rw-r--r-- | lib/jlibc/Makefile | 12 |
1 files changed, 12 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 $@ |