27 lines
626 B
Makefile
27 lines
626 B
Makefile
NAME := macros
|
|
|
|
SRC_DIR := src
|
|
SRCS := main.c event.c read_events.c read_file.c
|
|
OBJS := main.o event.o read_events.o read_file.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.c
|
|
$(CCXX) -I$(SRC_DIR) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
%.o: $(SRC_DIR)/%.c
|
|
$(CC) -I$(SRC_DIR) $(CFLAGS) -c -o $@ $<
|
|
|
|
clean:
|
|
rm $(OBJS)
|