macros/Makefile

28 lines
641 B
Makefile
Raw Normal View History

2022-12-05 02:37:25 +01:00
NAME := macros
SRC_DIR := src
2022-12-13 01:33:56 +01:00
SRCS := event.c read_events.c read_file.c ui.c
OBJS := event.o read_events.o read_file.o ui.o main.o
2022-12-05 02:37:25 +01:00
CC := gcc
2022-12-12 19:55:22 +01:00
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.
2022-12-05 02:37:25 +01:00
#CFLAGS := -Wall -ansi -g -I.
2022-12-14 17:32:36 +01:00
LDLIBS := -lxdo -lX11 -lglfw -lGL -lcimgui -lpthread
2022-12-05 02:37:25 +01:00
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(OBJS) $(LDLIBS) -o $(NAME)
2022-12-13 01:33:56 +01:00
main.o: $(SRC_DIR)/main.cpp
2022-12-12 19:55:22 +01:00
$(CCXX) -I$(SRC_DIR) $(CXXFLAGS) -c -o $@ $<
2022-12-05 02:37:25 +01:00
%.o: $(SRC_DIR)/%.c
2022-12-12 19:55:22 +01:00
$(CC) -I$(SRC_DIR) $(CFLAGS) -c -o $@ $<
2022-12-05 02:37:25 +01:00
clean:
rm $(OBJS)