21 lines
356 B
Makefile
21 lines
356 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 := -Wall -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)
|