mirror of
https://github.com/pret/pokediamond.git
synced 2026-10-04 00:19:31 -04:00
20 lines
285 B
Makefile
20 lines
285 B
Makefile
CC = gcc
|
|
CFLAGS = -O3
|
|
|
|
growth_rates_txt = $(wildcard *.txt)
|
|
growth_rates_bin = $(growth_rates_txt:%.txt=%.bin)
|
|
|
|
.PHONY: all clean
|
|
|
|
all: csv2bin $(growth_rates_bin)
|
|
@:
|
|
|
|
clean:
|
|
$(RM) csv2bin $(growth_rates_bin)
|
|
|
|
csv2bin: csv2bin.c
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
%.bin: %.txt
|
|
./csv2bin $<
|