pokeemerald/tools/aif2pcm/Makefile
luckytyphlosion 976b967732 Add msys2 and Cygwin instructions, also add .exe extension to built tools.
Todo: actually extensively test out msys2 and Cygwin, and double check the readme.
2020-11-26 20:21:16 -05:00

25 lines
312 B
Makefile

CC ?= gcc
CFLAGS = -Wall -Wextra -Wno-switch -Werror -std=c11 -O2
LIBS = -lm
SRCS = main.c extended.c
ifeq ($(OS),Windows_NT)
EXE := .exe
else
EXE :=
endif
.PHONY: all clean
all: aif2pcm$(EXE)
@:
aif2pcm$(EXE): $(SRCS)
$(CC) $(CFLAGS) $(SRCS) -o $@ $(LDFLAGS) $(LIBS)
clean:
$(RM) aif2pcm aif2pcm.exe