1 CFLAGS ?
= -DNDEBUG
-O3
-Wall
-Wextra
-pedantic
-std
=c99
3 SOURCES
:= main.c renderer.c microui.c
4 OBJECTS
:= $(SOURCES
:%.c
=%.o
)
5 DEPS
:= $(SOURCES
:%.c
=%.d
)
11 $(CC
) -o
$(MAIN
) $(OBJECTS
) $(LDLIBS
)
15 ifeq ($(OS
),Windows_NT
)
18 else ifeq ($(TARGET
), mingw
)
20 export CC
= x86_64-w64-mingw32-gcc
23 UNAME_S
:= $(shell uname
-s
)
24 ifeq ($(UNAME_S
),Darwin
)
25 LDLIBS
+= -framework Cocoa
32 rm -f main
$(OBJECTS
) $(DEPS
)