# DVX Tools Makefile
#
# Builds native (host) utilities. These run on the development machine
# (Linux or DOS), not on the target. No cross-compilation needed.

CC      = gcc
CFLAGS  = -O2 -Wall -Wextra -I../core

BINDIR  = ../bin

.PHONY: all clean

all: $(BINDIR)/dvxres

$(BINDIR)/dvxres: dvxres.c ../core/dvxResource.c ../core/dvxResource.h | $(BINDIR)
	$(CC) $(CFLAGS) -o $@ dvxres.c ../core/dvxResource.c

$(BINDIR):
	mkdir -p $(BINDIR)

clean:
	rm -f $(BINDIR)/dvxres
