gdunlap/sched-sim.hg

view Makefile @ 11:31f36108fc43

c02: Initial commit (clone of c01)
author George Dunlap <gdunlap@xensource.com>
date Tue Oct 20 18:14:37 2009 +0100 (2009-10-20)
parents 18f3d6e25ffc
children f289f886cbcc
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 options.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 options.o sched_credit01.o sched_credit02.o
25 $(CC) $(CFLAGS) -o $@ $^