Source

randomc / Makefile

Full commit
CFLAGS = -Wall -g
CC = gcc
LD = ld

all: main

clean:
	rm -f *.o main

main: main.o list.o list.h hash.c hash.h
	$(CC) $(filter-out %.h,$^) -o main

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

.PHONY: all clean