Compare commits

..

3 Commits

Author SHA1 Message Date
5f343c2126 ldargs go after sourcesgit add . 2025-11-27 14:49:13 +02:00
0c05556eb1 fix makefile 2025-11-27 14:22:22 +02:00
15f7da2df9 add .gitignore 2025-11-27 14:13:34 +02:00
3 changed files with 10 additions and 4 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
/*
!/src
!/Makefile
!/Readme.md
!/.gitignore

View File

@@ -1,5 +1,6 @@
# Generated by mklua
MKLUA ?= lua src/bootstrap.lua
LUA ?= lua
MKLUA ?= $(LUA) src/bootstrap.lua
CC ?= cc
OUTPUT = mklua
@@ -31,7 +32,7 @@ clean:
rm -f $(OUTPUT) $(OUTPUT).c
$(OUTPUT): $(OUTPUT).c $(LIBS)
$(CC) $(CCARGS) $(LDARGS) $^ -o $@
$(CC) $(CCARGS) $^ $(LDARGS) -o $@
$(OUTPUT).c: $(DEPS)
$(MKLUA) $(MKLUA_FLAGS) $(MKLUA_ENTRIES) -o $@

View File

@@ -111,7 +111,7 @@ clean:
rm -f $(OUTPUT) $(OUTPUT).c
$(OUTPUT): $(OUTPUT).c $(LIBS)
$(CC) $(CCARGS) $(LDARGS) $^ -o $@
$(CC) $(CCARGS) $^ $(LDARGS) -o $@
$(OUTPUT).c: $(DEPS)
$(MKLUA) $(MKLUA_FLAGS) $(MKLUA_ENTRIES) -o $@