mirror of
https://gitea.tendokyu.moe/self/even
synced 2024-12-18 10:35:57 +01:00
Add version info on startup
This commit is contained in:
parent
be34405154
commit
da753e9668
6
Makefile
6
Makefile
@ -13,12 +13,18 @@ DRVNAME = even
|
||||
INCLUDES = -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/ddk
|
||||
INCLUDES +=
|
||||
|
||||
|
||||
# We could in fact just add -DEVEN_DRIVER_NAME=\"$(DRVNAME)\" to CFLAGS,
|
||||
# but we'd have to be careful to "make clean" after changing
|
||||
# the driver name here in the makefile...
|
||||
#CFLAGS = -Wall $(INCLUDES) -DEVEN_DRIVER_NAME=\"$(DRVNAME)\"
|
||||
CFLAGS = -Wall -Wpedantic -DNDEBUG $(INCLUDES)
|
||||
|
||||
ifneq ($(RELEASE),)
|
||||
VERSION = $(shell git describe --tags --always --dirty)
|
||||
CFLAGS += -DEVEN_VERSION=\"$(VERSION)\"
|
||||
endif
|
||||
|
||||
# Kernel-mode libs:
|
||||
# libntoskrnl = basic kernel-mode environment
|
||||
# libhal = WRITE_PORT_UCHAR et al.
|
||||
|
Loading…
Reference in New Issue
Block a user