summaryrefslogtreecommitdiff
path: root/tools/assets/build_jfif/Makefile
blob: 674881aa7c4851b218cfa0b0b6c5773477612a0b (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_jfif

clean:
	$(RM) build_jfif

.PHONY: default clean

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