summaryrefslogtreecommitdiff
path: root/tools/assets/build_from_png/Makefile
blob: 88076bc0dfb902dca0ba4b544f17e8757ad4f747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFLAGS := -Wall -Wextra -O3

ifeq ($(shell $(CC) --version | grep clang),)
  OMPFLAGS := -fopenmp
else
  OMPFLAGS :=
endif

default: build_from_png

clean:
	$(RM) build_from_png

.PHONY: default clean

build_from_png: build_from_png.c ../n64texconv/libn64texconv.a
	$(CC) $(CFLAGS) -o $@ $^ $(OMPFLAGS) -lz -lm