summaryrefslogtreecommitdiff
path: root/userspace/sys/Makefile
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-08-17 02:28:02 +0200
committerMiguel <m.i@gmx.at>2018-08-17 02:28:02 +0200
commitc742be9c738c91703a7be787639cad167de3a6b1 (patch)
treedb0e170dab1b7f34630489d0cb1d396c92f15c79 /userspace/sys/Makefile
parent559eea53ecdd1e3e45f24d15e8739419b0cd647a (diff)
started reviving my fool os
Diffstat (limited to 'userspace/sys/Makefile')
-rw-r--r--userspace/sys/Makefile37
1 files changed, 21 insertions, 16 deletions
diff --git a/userspace/sys/Makefile b/userspace/sys/Makefile
index 05177a6..289da1e 100644
--- a/userspace/sys/Makefile
+++ b/userspace/sys/Makefile
@@ -1,23 +1,28 @@
-SYSROOT=/home/miguel/opt/foolos
-CC=i686-foolos-gcc
-LD=i686-foolos-ld
+CC=i686-elf-gcc
+LD=i686-elf-ld
-CFLAGS=
-CFLAGS+=-w
-CFLAGS+=-I../..
-CFLAGS+=-gstabs
+#CFLAGS=
+#CFLAGS+=-w
+#CFLAGS+=-I../..
+#CFLAGS+=-gstabs
+#CFLAGS+=-I.
-install: crt_install header_install
+#LDFLAGS=-L/home/miguel/foolos/usr/i686-foolos/lib/ -lc -lm -lg -lnosys
+#CFLAGS+=-I/home/miguel/foolos/usr/i686-foolos/include
-crt_install: crt0.o
- cp crt0.o $(SYSROOT)/usr/lib/
+#install: crt_install header_install
-crt0.o: crt.o sys.o syscalls.o
- $(LD) -r $^ -o $@
+#crt_install: crt0.o
+# cp crt0.o $(SYSROOT)/usr/lib/
-header_install:
- cp *.h $(SYSROOT)/usr/include/
- cp sys/*.h $(SYSROOT)/usr/include/sys/
+#crt0.o: crt.o sys.o #syscalls.o
+# $(LD) -r $^ -o $@
+
+#header_install:
+# cp *.h $(SYSROOT)/usr/include/
+# cp sys/*.h $(SYSROOT)/usr/include/sys/
+
+crt0.o: crt0.S
clean:
- -rm *.o *.a
+ -rm -f *.o *.a