~laumann/C

ref: b5e917402f651de69e12fb2a009ddf2cba6d24f8 C/redblacktree/Makefile -rw-r--r-- 449 bytes
b5e91740 — Thomas Laumann Shorter dead/alive calculation 9 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CC=gcc
CFLAGS=-Wall
LIB=redblacktree.c
HDRS=redblacktree.h

all: use_redblacktree rbdel

use_redblacktree: use_redblacktree.c $(LIB) $(HDRS)
	@echo "Building 'use_redblacktree'"
	$(CC) $(CFLAGS) -o $@ $< $(LIB)

rbdel: rbdel.c $(LIB) $(HDRS)
	@echo "Building 'rbdel'"
	$(CC) $(CFLAGS) -o $@ $< $(LIB)


%.ps: %.dot
	dot -q -Tps -o$@ $<

clean: clean-graphs
	@rm -fv use_redblacktree rbdel *~ *.swp

clean-graphs:
	@rm -fv *.ps *.dot

.PHONY: clean