summaryrefslogtreecommitdiffstats
path: root/skeletons/Makefile.erb
blob: ac7e0a6e55668fcff0f41d4ad72a43f921f9faff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


CC     = gcc
STD    = _GNU_SOURCE
OBJS   = A.o test.o B.o
CFLAGS = -D__TZURTCH__
BIN = binary

.PHONY: clean

.c.o:
	$(CC) -c -Wall -I. $(CFLAGS) -D$(STD) -o $@ $<

all: $(OBJS)
	$(CC) $(OBJS) -o $@

clean:
	rm -f *~ *.o core $(BIN)