Archived
Практика
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
ifdef SystemRoot
|
||||
format = win32
|
||||
rm = del
|
||||
ext = .exe
|
||||
else
|
||||
format = elf
|
||||
rm = rm -f
|
||||
ext =
|
||||
endif
|
||||
|
||||
all: primes.o
|
||||
gcc primes.o -o primes$(ext)
|
||||
$(rm) primes.o
|
||||
|
||||
primes.o:
|
||||
nasm -f $(format) main.asm -o primes.o
|
||||
Reference in New Issue
Block a user