# Makefile to build cbuild

CFLAGS=-W -Wall -O2

ifneq ($(MINGDIR)$(DJDIR),)
CC=gcc
EXE=.exe
else
EXE=
endif

all: cbuild$(EXE) msg

.PHONY: msg

cbuild$(EXE): cbuild.c
	$(CC) $(CFLAGS) -o $@ $<

msg:
	@echo CBuild is now built. Please run it to build the lib.
	@echo To check the available build options, run: cbuild --help
