gdunlap/sched-sim.hg

annotate 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
rev   line source
gdunlap@0 1 CC = gcc
gdunlap@0 2
gdunlap@0 3 CFLAGS += -g
gdunlap@0 4 CFLAGS += -fno-strict-aliasing
gdunlap@0 5 CFLAGS += -std=gnu99
gdunlap@0 6 CFLAGS += -Wall -Wstrict-prototypes
gdunlap@0 7 CFLAGS += -Wno-unused-value
gdunlap@0 8 CFLAGS += -Wdeclaration-after-statement
gdunlap@0 9 CFLAGS += -Werror
gdunlap@0 10
gdunlap@0 11 BIN = simulator
gdunlap@0 12
gdunlap@0 13 HDRS = list.h workload.h sim.h stats.h
gdunlap@0 14
gdunlap@0 15 all: $(BIN)
gdunlap@0 16
gdunlap@0 17 .PHONY: clean
gdunlap@0 18 clean:
gdunlap@0 19 $(RM) *.a *.so *.o $(BIN) $(LIBBIN)
gdunlap@0 20
gdunlap@0 21 %.o: %.c $(HDRS) Makefile
gdunlap@0 22 $(CC) $(CFLAGS) -c -o $@ $<
gdunlap@0 23
gdunlap@0 24 simulator: simulator.o workloads.o sched_rr.o stats.o
gdunlap@0 25 $(CC) $(CFLAGS) -o $@ $^