From b1ddaa81f28b8bbc62d6d50526e0935b173099eb Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sat, 17 Apr 2021 10:28:11 +0200 Subject: Init --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f0d9e30 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +CC=gcc +CC_OPTS=-g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone -fno-omit-frame-pointer -pg -mnop-mcount +INCLUDE=-fuse-ld=bfd -Wl,-T,ape/ape.lds -include ape/cosmopolitan.h ape/crt.o ape/ape.o ape/cosmopolitan.a + +all: cat.com + +cat.com.dbg: cat.c + $(CC) $(CC_OPTS) cat.c -o cat.com.dbg $(INCLUDE) + +cat.com: cat.com.dbg + objcopy -S -O binary cat.com.dbg cat.com + +clean: + rm cat.com cat.com.dbg -- cgit 1.4.1