2022-12-05 02:37:25 +01:00
|
|
|
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
|
2022-12-05 03:07:23 +01:00
|
|
|
CFLAGS := -ansi -pedantic -Wall -Wextra -g -I.
|
2022-12-05 02:37:25 +01:00
|
|
|
#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)
|