123456789101112131415161718192021222324252627282930313233343536373839404142 |
- NASM=nasm
- LD=ld
- GZIP=gzip
- ZIP=zip
- BASE64=base64
-
- ASFLAGS=-felf64
- LDFLAGS=-s -melf_x86_64
-
- all: amd64elfquine check
-
- dist: amd64elfquine amd64elfquine.zip amd64elfquine.gz amd64elfquine.gz.txt
- md5sum $^ > MD5SUMS;\
- sha256sum $^ > SHA256SUMS;\
- sha512sum $^ > SHA512SUMS;
-
- amd64elfquine.gz.txt: amd64elfquine.gz
- $(BASE64) > $@ < $<
-
- amd64elfquine.gz: amd64elfquine
- $(GZIP) -9 -c > $@ < $<
-
- amd64elfquine.zip: amd64elfquine
- $(ZIP) -r amd64elfquine.zip amd64elfquine
-
- amd64elfquine: amd64elfquine.o
- $(LD) $(LDFLAGS) $< -o $@
-
- amd64elfquine.o: amd64elfquine.asm
- $(NASM) $(ASFLAGS) $< -o $@
-
- .PHONY: clean dist check
-
- check: amd64elfquine
- /bin/sh check.sh
-
- clean:
- -rm -fv amd64elfquine.o
-
- distclean: clean
- -rm -fv amd64elfquine amd64elfquine.gz amd64elfquine.gz.txt \
- amd64elfquine.zip MD5SUMS SHA256SUMS SHA512SUMS
|