summaryrefslogtreecommitdiff
path: root/code/fe310/gloss/Makefile
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-12-04 06:11:35 +0100
committerUros Majstorovic <majstor@majstor.org>2019-12-04 06:11:35 +0100
commit31578e285a21a749a49e3ac146feb8b02fcc7b52 (patch)
treee67f619360352a87fb6e0f410f5246468fbc1073 /code/fe310/gloss/Makefile
parent2c981aec5e5c10f9fd036dfb48105b16f16e4233 (diff)
added new metal sdk
Diffstat (limited to 'code/fe310/gloss/Makefile')
-rw-r--r--code/fe310/gloss/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/code/fe310/gloss/Makefile b/code/fe310/gloss/Makefile
new file mode 100644
index 0000000..a937a53
--- /dev/null
+++ b/code/fe310/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