picoc/Makefile

23 lines
299 B
Makefile
Raw Normal View History

CC=gcc
CFLAGS=-Wall -g
TARGET = picoc
SRCS = picoc.c table.c str.c parse.c lex.c
OBJS := $(SRCS:%.c=%.o)
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS)
clean:
rm -f $(TARGET) $(OBJS) *~
count:
wc $(SRCS) picoc.h
depend:
$(CC) -MM $(SRCS) >.depend
-include .depend