mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-18 20:55:44 +01:00
Compare commits
3 Commits
1169ca98b1
...
1140bd97bf
| Author | SHA1 | Date | |
|---|---|---|---|
| 1140bd97bf | |||
| 997b15c640 | |||
| f481af7e78 |
5
Makefile
5
Makefile
@@ -24,7 +24,7 @@ LDFLAGS += -fsanitize=address -ftrapv
|
||||
endif
|
||||
CPPFLAGS += -Iinclude -Ilib/glad/include -Ilib/glfw/include -Ilib/libarchive/libarchive
|
||||
LDFLAGS += -Llib/obj/glfw/src -Llib/obj/libarchive/libarchive
|
||||
LDLIBS += -lm -lglfw -larchive
|
||||
LDLIBS += -lm -lglfw3 -larchive
|
||||
|
||||
# detect if we're compiling on Windows, meaning
|
||||
# a lot of things considered "standard" are unavailable.
|
||||
@@ -38,7 +38,7 @@ endif
|
||||
# find all the source files using wildcards
|
||||
# NOTE: MS-DOS and MS-Windows uses backslash `\`, this might break.
|
||||
RES := $(wildcard res/*)
|
||||
SRC := $(wildcard src/*.c src/*/*.c src/*/*/*.c src/*/*/*/*.c src/*/*/*/*/*.c src/*/*/*/*/*/*.c src/*/*/*/*/*/*/*.c src/*/*/*/*/*/*/*/*.c) lib/glad/gl.c
|
||||
SRC := $(wildcard src/*.c src/*/*.c src/*/*/*.c src/*/*/*/*.c src/*/*/*/*/*.c src/*/*/*/*/*/*.c src/*/*/*/*/*/*/*.c src/*/*/*/*/*/*/*/*.c) lib/glad/src/gl.c
|
||||
OBJ := $(SRC:%.c=obj/%.o) $(RES:%=obj/%.o)
|
||||
TSRC := $(wildcard test/*.c test/*/*.c test/*/*/*.c test/*/*/*/*.c test/*/*/*/*/*.c test/*/*/*/*/*/*.c test/*/*/*/*/*/*/*.c test/*/*/*/*/*/*/*/*.c)
|
||||
TOBJ := $(TSRC:%.c=obj/%.o)
|
||||
@@ -74,6 +74,7 @@ bin/TEST_$(NAME): $(TOBJ) $(filter-out main.o,$(OBJ))
|
||||
|
||||
obj/res/%.o: res/%
|
||||
$(info [LD] $@)
|
||||
@mkdir -p $(@D)
|
||||
@$(LD) -r -b binary -o $@ $<
|
||||
|
||||
obj/%.o: %.c
|
||||
|
||||
Reference in New Issue
Block a user