summary refs log tree commit diff stats
path: root/Makefile
blob: ba62baea406ce973ffa61431464fe0a3f8cb7320 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
BIN = lith
CC = gcc
CFLAGS = -g -std=c89 -Wall
LDFLAGS = 

SRCS = lith.c main.c
OBJS = $(SRCS:.c=.o)

$(BIN): $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)

%.o: %.c lith.h
	$(CC) $(CFLAGS) -c -o $@ $<

clean:
	rm -f $(BIN) $(OBJS)

all: $(BIN)