add compilation for imgui
This commit is contained in:
parent
e6587a4d29
commit
a4a6be6fb4
1 changed files with 9 additions and 3 deletions
12
Makefile
12
Makefile
|
@ -5,17 +5,23 @@ SRCS := main.c event.c read_events.c read_file.c
|
|||
OBJS := main.o event.o read_events.o read_file.o
|
||||
|
||||
CC := gcc
|
||||
CFLAGS := -ansi -pedantic -Wall -Wextra -g -I.
|
||||
CCXX := g++
|
||||
CFLAGS := -Wall -Wextra -g -I.
|
||||
CXXFLAGS := -fpermissive -DIMGUI_IMPL_OPENGL_LOADER_GLFW -DIMGUI_IMPL_API="" -Wall -Wextra -g -I.
|
||||
#CFLAGS := -ansi -pedantic -Wall -Wextra -g -I.
|
||||
#CFLAGS := -Wall -ansi -g -I.
|
||||
LDLIBS := -lxdo -lX11
|
||||
LDLIBS := -lxdo -lX11 -lglfw -lGL -lcimgui
|
||||
|
||||
all: $(NAME)
|
||||
|
||||
$(NAME): $(OBJS)
|
||||
$(CC) $(OBJS) $(LDLIBS) -o $(NAME)
|
||||
|
||||
main.o: $(SRC_DIR)/main.c
|
||||
$(CCXX) -I$(SRC_DIR) $(CXXFLAGS) -c -o $@ $<
|
||||
|
||||
%.o: $(SRC_DIR)/%.c
|
||||
$(CC) -I$(CFLAGS) -c -o $@ $<
|
||||
$(CC) -I$(SRC_DIR) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
clean:
|
||||
rm $(OBJS)
|
||||
|
|
Loading…
Reference in a new issue