mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-29 13:50:42 +01:00
25 lines
312 B
Makefile
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
|