21 lines
331 B
Makefile
21 lines
331 B
Makefile
# standard makefile
|
|
SRC = math
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
TARGET = $(SRC).exe
|
|
else
|
|
TARGET = $(SRC)
|
|
endif
|
|
|
|
all: $(SRC).c
|
|
gcc -g -Wall $(SRC).c -lm -o $(TARGET)
|
|
|
|
program:
|
|
vc +tos -D_ATARI -o $(SRC).prg $(SRC).c
|
|
|
|
amiga:
|
|
vc +amiga -D_AMIGA -o $(SRC) $(SRC).c
|
|
|
|
clean:
|
|
rm -f $(SRC).o $(SRC) $(SRC).exe $(SRC).prg
|