gdunlap/sched-sim.hg

view Makefile @ 0:d27bb3c56e71

Inital commit.
author George Dunlap <gdunlap@xensource.com>
date Tue Oct 13 16:06:36 2009 +0100 (2009-10-13)
parents
children 1d7310217c5a
line source
1 CC = gcc
3 CFLAGS += -g
4 CFLAGS += -fno-strict-aliasing
5 CFLAGS += -std=gnu99
6 CFLAGS += -Wall -Wstrict-prototypes
7 CFLAGS += -Wno-unused-value
8 CFLAGS += -Wdeclaration-after-statement
9 CFLAGS += -Werror
11 BIN = simulator
13 HDRS = list.h workload.h sim.h stats.h
15 all: $(BIN)
17 .PHONY: clean
18 clean:
19 $(RM) *.a *.so *.o $(BIN) $(LIBBIN)
21 %.o: %.c $(HDRS) Makefile
22 $(CC) $(CFLAGS) -c -o $@ $<
24 simulator: simulator.o workloads.o sched_rr.o stats.o
25 $(CC) $(CFLAGS) -o $@ $^