diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-04-17 12:19:31 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-04-17 12:19:31 +0200 |
commit | 755df738693a480b5a6a99929aa7f648100a8c32 (patch) | |
tree | 68447f63d5446bc010bc6dc2781f532677a0a205 /Makefile | |
parent | b1ddaa81f28b8bbc62d6d50526e0935b173099eb (diff) | |
download | md2html-755df738693a480b5a6a99929aa7f648100a8c32.tar.gz md2html-755df738693a480b5a6a99929aa7f648100a8c32.zip |
Add md2html
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 |