macros/Makefile
2022-12-13 01:33:56 +01:00

27 lines
631 B
Makefile

NAME := macros
SRC_DIR := src
SRCS := event.c read_events.c read_file.c ui.c
OBJS := event.o read_events.o read_file.o ui.o main.o
CC := gcc
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 -lglfw -lGL -lcimgui
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(OBJS) $(LDLIBS) -o $(NAME)
main.o: $(SRC_DIR)/main.cpp
$(CCXX) -I$(SRC_DIR) $(CXXFLAGS) -c -o $@ $<
%.o: $(SRC_DIR)/%.c
$(CC) -I$(SRC_DIR) $(CFLAGS) -c -o $@ $<
clean:
rm $(OBJS)