Put version in a single place

This commit is contained in:
Michael Theall 2016-01-22 14:42:38 -06:00
parent 7ffa6d6255
commit 55816af44b
3 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
.PHONY: all clean linux
export VERSION := 2.2
all:
@$(MAKE) -f Makefile.3ds

View File

@ -33,7 +33,7 @@ DATA := data
INCLUDES := include
APP_TITLE := Super ftBRONY II Turbo
APP_DESCRIPTION := v2.2
APP_DESCRIPTION := v$(VERSION)
APP_AUTHOR := mtheall
ICON := ftbrony.png
@ -44,7 +44,7 @@ ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard
CFLAGS := -g -Wall -O3 -mword-relocations \
$(ARCH) \
-DSTATUS_STRING="\"ftbrony v2.2\""
-DSTATUS_STRING="\"ftbrony v$(VERSION)\""
CFLAGS += $(INCLUDE) -DARM11 -D_3DS

View File

@ -3,7 +3,7 @@ TARGET := $(notdir $(CURDIR))
CFILES := $(wildcard source/*.c)
OFILES := $(patsubst source/%,build.linux/%,$(CFILES:.c=.o))
CFLAGS := -g -Wall -Iinclude -DSTATUS_STRING="\"ftpd v2.2\""
CFLAGS := -g -Wall -Iinclude -DSTATUS_STRING="\"ftpd v$(VERSION)\""
LDFLAGS :=
.PHONY: all clean