1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2024-07-21 11:15:13 +00:00
InForm/makefile.inform
2024-01-11 19:01:18 +05:30

50 lines
1.1 KiB
Plaintext

# Makefile for InForm
ifndef OS
$(error "OS must be set to 'lnx', 'win', or 'osx'")
endif
ifndef QB64PE_PATH
$(error "QB64PE_PATH must be path where QB64-PE is installed")
endif
ifeq ($(OS),lnx)
RM := rm -fr
EXTENSION :=
endif
ifeq ($(OS),win)
RM := del /Q
EXTENSION := .exe
endif
ifeq ($(OS),osx)
RM := rm -fr
EXTENSION :=
endif
# This should point to your QB64 installation
QB64PE := qb64pe
QB64PE_FLAGS := -x -w -e
.PHONY: all clean
all: UiEditor$(EXTENSION) InForm/UiEditorPreview$(EXTENSION) InForm/vbdos2inform$(EXTENSION)
UiEditor$(EXTENSION) : InForm/UiEditor.bas
$(QB64PE_PATH)$(QB64PE)$(EXTENSION) $(QB64PE_FLAGS) $< -o $@
InForm/UiEditorPreview$(EXTENSION) : InForm/UiEditorPreview.bas
$(QB64PE_PATH)$(QB64PE)$(EXTENSION) $(QB64PE_FLAGS) $< -o $@
InForm/vbdos2inform$(EXTENSION) : InForm/vbdos2inform.bas
$(QB64PE_PATH)$(QB64PE)$(EXTENSION) $(QB64PE_FLAGS) $< -o $@
clean:
ifeq ($(OS),win)
$(RM) UiEditor$(EXTENSION) InForm\UiEditorPreview$(EXTENSION) InForm\vbdos2inform$(EXTENSION)
else
$(RM) UiEditor$(EXTENSION) InForm/UiEditorPreview$(EXTENSION) InForm/vbdos2inform$(EXTENSION)
endif