diff options
Diffstat (limited to 'rgo/Makefile')
-rw-r--r-- | rgo/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/rgo/Makefile b/rgo/Makefile new file mode 100644 index 0000000..4a4e29e --- /dev/null +++ b/rgo/Makefile @@ -0,0 +1,33 @@ +SRCS_ASM = \ + src/fndchr.S \ + src/memcpy.S \ + src/memfill.S \ + src/strlen.S +SRCS_C = \ + src/memdup.c \ + src/strdup.c \ + src/strfill.c + +OBJS_ASM := $(SRCS_ASM:.S=.o) +OBJS_C := $(SRCS_C:.c=.o) +OBJS := $(OBJS_ASM) $(OBJS_C) +LIB := librgo.a + +ASFLAGS = \ + -Iinclude \ + -g + +CFLAGS = \ + -Iinclude \ + -g + +.PHONY: clean + +$(LIB): $(OBJS) + ar r $@ $^ + +clean: + rm -fr $(OBJS) + +purge: + rm -fr $(LIB) $(OBJS) |