mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-18 22:35:45 +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
|
endif
|
||||||
CPPFLAGS += -Iinclude -Ilib/glad/include -Ilib/glfw/include -Ilib/libarchive/libarchive
|
CPPFLAGS += -Iinclude -Ilib/glad/include -Ilib/glfw/include -Ilib/libarchive/libarchive
|
||||||
LDFLAGS += -Llib/obj/glfw/src -Llib/obj/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
|
# detect if we're compiling on Windows, meaning
|
||||||
# a lot of things considered "standard" are unavailable.
|
# a lot of things considered "standard" are unavailable.
|
||||||
@@ -38,7 +38,7 @@ endif
|
|||||||
# find all the source files using wildcards
|
# find all the source files using wildcards
|
||||||
# NOTE: MS-DOS and MS-Windows uses backslash `\`, this might break.
|
# NOTE: MS-DOS and MS-Windows uses backslash `\`, this might break.
|
||||||
RES := $(wildcard res/*)
|
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)
|
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)
|
TSRC := $(wildcard test/*.c test/*/*.c test/*/*/*.c test/*/*/*/*.c test/*/*/*/*/*.c test/*/*/*/*/*/*.c test/*/*/*/*/*/*/*.c test/*/*/*/*/*/*/*/*.c)
|
||||||
TOBJ := $(TSRC:%.c=obj/%.o)
|
TOBJ := $(TSRC:%.c=obj/%.o)
|
||||||
@@ -74,6 +74,7 @@ bin/TEST_$(NAME): $(TOBJ) $(filter-out main.o,$(OBJ))
|
|||||||
|
|
||||||
obj/res/%.o: res/%
|
obj/res/%.o: res/%
|
||||||
$(info [LD] $@)
|
$(info [LD] $@)
|
||||||
|
@mkdir -p $(@D)
|
||||||
@$(LD) -r -b binary -o $@ $<
|
@$(LD) -r -b binary -o $@ $<
|
||||||
|
|
||||||
obj/%.o: %.c
|
obj/%.o: %.c
|
||||||
|
|||||||
Reference in New Issue
Block a user