forked from inflex/BK-390A
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.win
More file actions
34 lines (28 loc) · 834 Bytes
/
Makefile.win
File metadata and controls
34 lines (28 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# VERSION CHANGES
#
BV=$(shell (git rev-list HEAD --count))
BD=$(shell (date))
CFLAGS=-O -DBUILD_VER="$(BV)" -DBUILD_DATE=\""$(BD)"\" -DFAKE_SERIAL=$(FAKE_SERIAL)
LIBS=
WINLIBS=-lgdi32 -lcomdlg32 -lcomctl32 -lmingw32 -lwinspool
CC=gcc
GCC=g++
WINFLAGS=-static-libgcc -municode -static-libstdc++
OBJ=bk390a.exe
WINOBJ=win-bk390a.exe
default:
@echo
@echo " For OBS command line tool: make bk390a"
@echo " For GUI tool: make win-bk390a"
@echo
@echo " To make a GUI test, export FAKE_SERIAL=1 && make win-bk390a"
@echo
win-bk390a: win-bk390a.cpp
@echo Build Release $(BV)
@echo Build Date $(BD)
${GCC} ${CFLAGS} ${WINFLAGS} $(COMPONENTS) win-bk390a.cpp ${OFILES} -o ${WINOBJ} ${LIBS} ${WINLIBS}
bk390a: bk390a.c
${CC} ${CFLAGS} $(COMPONENTS) bk390a.c ${OFILES} -o ${OBJ} ${LIBS}
clean:
del /s ${OBJ} ${WINOBJ}