From 0894a1e7664504312a9cdfc826eef89030aaaa1b Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 5 Aug 2020 02:52:42 +0200 Subject: new directory sructure for fe310 fw --- code/fe310/bsp/gloss/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 code/fe310/bsp/gloss/Makefile (limited to 'code/fe310/bsp/gloss/Makefile') diff --git a/code/fe310/bsp/gloss/Makefile b/code/fe310/bsp/gloss/Makefile new file mode 100644 index 0000000..4376dce --- /dev/null +++ b/code/fe310/bsp/gloss/Makefile @@ -0,0 +1,17 @@ +include ../../common.mk +CFLAGS += -I../include + +src = sys_access.c sys_chdir.c sys_chmod.c sys_chown.c sys_close.c sys_execve.c sys_exit.c sys_faccessat.c sys_fork.c sys_fstat.c sys_fstatat.c sys_ftime.c sys_getcwd.c sys_getpid.c \ + sys_isatty.c sys_kill.c sys_link.c sys_lseek.c sys_lstat.c sys_open.c sys_openat.c sys_read.c sys_sbrk.c sys_stat.c sys_sysconf.c sys_unlink.c sys_utime.c sys_wait.c sys_write.c +obj = crt0.o $(src:.c=.o) + +%.o: %.c + $(CC) $(CFLAGS) -c $< + +%.o: %.S + $(CC) $(CFLAGS) -c $< + +all: $(obj) + +clean: + rm -f *.o -- cgit v1.2.3