mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-14 19:49:33 +00:00
49 lines
1.1 KiB
Text
49 lines
1.1 KiB
Text
|
|
# 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 QB64PE 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
|