mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-18 20:35:45 +01:00
Compare commits
3 Commits
6dea03ee2e
...
ffbbe11553
| Author | SHA1 | Date | |
|---|---|---|---|
| ffbbe11553 | |||
| 98be56290d | |||
| 4d53f03ad8 |
4
makefile
4
makefile
@@ -48,13 +48,13 @@ CFLAGS += -DNDEBUG -O2
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -Ilib/glad/include -Ilib/glfw/include -Ilib/libarchive/include
|
CFLAGS += -Ilib/glad/include -Ilib/glfw/include -Ilib/libarchive/include
|
||||||
LDFLAGS += -lc -lm lib/glad/gl.o lib/glfw/src/libglfw3.a
|
LDFLAGS += -lm lib/glad/gl.o lib/glfw/src/libglfw3.a
|
||||||
|
|
||||||
# get source files
|
# get source files
|
||||||
SRC := $(wildcard src/*.c) $(wildcard src/**/*.c)
|
SRC := $(wildcard src/*.c) $(wildcard src/**/*.c)
|
||||||
RES := $(wildcard res/*.glsl)
|
RES := $(wildcard res/*.glsl)
|
||||||
ifeq ($(DEBUG),test)
|
ifeq ($(DEBUG),test)
|
||||||
SRC := $(filter-out src/main.c, $(SRC)) $(wildcard test/**/*.c)
|
SRC := $(filter-out src/main.c, $(SRC)) $(wildcard test/*.c) $(wildcard test/**/*.c)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
NAME += $(if $(filter 1,$(ISWIN)),.exe,)
|
NAME += $(if $(filter 1,$(ISWIN)),.exe,)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "../src/util/conf.h"
|
#include "../src/util/conf.h"
|
||||||
#include "../src/util/types.h"
|
#include "../src/util/intdef.h"
|
||||||
#include "t_arith.h"
|
#include "t_arith.h"
|
||||||
#include "t_conf.h"
|
#include "t_conf.h"
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|
||||||
|
/* tests arithmetic shift for signed integers (rather than logical shift) */
|
||||||
int test_sar(void *dat) {
|
int test_sar(void *dat) {
|
||||||
(void)dat;
|
(void)dat;
|
||||||
return assert_true(-3 >> 5 == -1);
|
return assert_true(-3 >> 5 == -1);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../src/util/conf.h"
|
#include "../src/util/conf.h"
|
||||||
#include "../src/util/types.h"
|
#include "../src/util/intdef.h"
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|
||||||
// Environment saver structure for conf_getpat tests
|
// Environment saver structure for conf_getpat tests
|
||||||
|
|||||||
Reference in New Issue
Block a user