macros/Makefile
2022-12-05 03:07:23 +01:00

21 lines
380 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
CFLAGS := -ansi -pedantic -Wall -Wextra -g -I.
#CFLAGS := -Wall -ansi -g -I.
LDLIBS := -lxdo -lX11
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(OBJS) $(LDLIBS) -o $(NAME)
%.o: $(SRC_DIR)/%.c
$(CC) -I$(CFLAGS) -c -o $@ $<
clean:
rm $(OBJS)