ext2_parser/Makefile

18 lines
311 B
Makefile
Raw Normal View History

2018-11-10 11:33:49 -06:00
CC = gcc
CFLAGS = -Wall -g
SRCS = $(wildcard *.c */*.c */*/*.c)
OBJS = $(SRCS:.c=.o)
MAIN = ext2prsr
.PHONY: clean
all: $(MAIN)
run: $(MAIN)
./$(MAIN)
debug: $(MAIN)
lldb $(MAIN)
$(MAIN): $(OBJS)
$(CC) $(CFLAGS) -o $(MAIN) $(OBJS)
.c.o:
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean:
$(RM) *.o *~ $(MAIN)