Skip to content

Commit e67f4e1

Browse files
committed
Align makefile and luamake, See #1
1 parent 1123cb1 commit e67f4e1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CC?=gcc
99
LD=$(CC)
1010
LUA_EXE=$(BUILD)/lua.exe
1111
SHDC=sokol-shdc.exe
12+
VERSION=$(shell git rev-parse HEAD)
1213

1314
#for msvc
1415
ifeq ($(CC),cl)
@@ -102,6 +103,9 @@ $(BUILD)/%.dl.h : src/data/%.dl
102103
$(BUILD)/soluna_embedlua.o : src/embedlua.c $(LTASK_LUACODE) $(DATALIST_CODE)
103104
$(COMPILE_C) -I$(BUILD) $(LUAINC)
104105

106+
$(BUILD)/soluna_entry.o : src/entry.c src/version.h
107+
$(COMPILE_C) $(LUAINC) $(3RDINC) -DSOLUNA_HASH_VERSION=\"$(VERSION)\"
108+
105109
$(BUILD)/soluna_%.o : src/%.c
106110
$(COMPILE_C) $(LUAINC) $(3RDINC) $(SHADERINC) $(YOGAINC)
107111

0 commit comments

Comments
 (0)