~laumann/C

ref: 413fc2afed8f30cf2c7892f00e2bc36326a81f64 C/redblacktree/Makefile -rw-r--r-- 465 bytes
413fc2af — Thomas Bracht Laumann Jespersen A few changes 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
CC=gcc
CFLAGS=-Wall -O2
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 clean-graphs