mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-25 11:14:15 +01:00
23 lines
262 B
Makefile
23 lines
262 B
Makefile
CC ?= gcc
|
|
|
|
CFLAGS = -Wall -Wextra -Werror -std=c11 -O2
|
|
|
|
.PHONY: all clean
|
|
|
|
SRCS = bin2c.c
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
EXE := .exe
|
|
else
|
|
EXE :=
|
|
endif
|
|
|
|
all: bin2c$(EXE)
|
|
@:
|
|
|
|
bin2c$(EXE): $(SRCS)
|
|
$(CC) $(CFLAGS) $(SRCS) -o $@ $(LDFLAGS)
|
|
|
|
clean:
|
|
$(RM) bin2c bin2c.exe
|