#!/usr/bin/makefile -f

all: build

ifeq ($(WINDOWS),true)
build: ../lv2_ttl_generator.exe
else
build: ../lv2_ttl_generator
endif

../lv2_ttl_generator: lv2_ttl_generator.c
	$(CC) $< $(CFLAGS) -o $@ $(LDFLAGS) -ldl

../lv2_ttl_generator.exe: lv2_ttl_generator.c
	$(CC) $< $(CFLAGS) -o $@ $(LDFLAGS) -static
	touch ../lv2_ttl_generator

clean:
	rm -f ../lv2_ttl_generator ../lv2_ttl_generator.exe
