add compilation for imgui

This commit is contained in:
rick 2022-12-12 19:55:22 +01:00
parent e6587a4d29
commit a4a6be6fb4
Signed by: Rick
GPG key ID: 4A6223D66294EB20

View file

@ -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 OBJS := main.o event.o read_events.o read_file.o
CC := gcc 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. #CFLAGS := -Wall -ansi -g -I.
LDLIBS := -lxdo -lX11 LDLIBS := -lxdo -lX11 -lglfw -lGL -lcimgui
all: $(NAME) all: $(NAME)
$(NAME): $(OBJS) $(NAME): $(OBJS)
$(CC) $(OBJS) $(LDLIBS) -o $(NAME) $(CC) $(OBJS) $(LDLIBS) -o $(NAME)
main.o: $(SRC_DIR)/main.c
$(CCXX) -I$(SRC_DIR) $(CXXFLAGS) -c -o $@ $<
%.o: $(SRC_DIR)/%.c %.o: $(SRC_DIR)/%.c
$(CC) -I$(CFLAGS) -c -o $@ $< $(CC) -I$(SRC_DIR) $(CFLAGS) -c -o $@ $<
clean: clean:
rm $(OBJS) rm $(OBJS)