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