diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile b/Makefile index f0d9e30..cccffaf 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,18 @@ 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 +NAME=md2html -cat.com.dbg: cat.c - $(CC) $(CC_OPTS) cat.c -o cat.com.dbg $(INCLUDE) +all: $(NAME).com -cat.com: cat.com.dbg - objcopy -S -O binary cat.com.dbg cat.com +$(NAME).com.dbg: $(NAME).c + $(CC) $(CC_OPTS) $(NAME).c -o $(NAME).com.dbg $(INCLUDE) + +$(NAME).com: $(NAME).com.dbg + objcopy -S -O binary $(NAME).com.dbg $(NAME).com clean: - rm cat.com cat.com.dbg + rm $(NAME).com $(NAME).com.dbg + +deploy: $(NAME).com + scp $(NAME).com srv1:/var/www/niedzwiedzinski.cyou/$(NAME).com |