gdunlap/sched-sim.hg

annotate Makefile @ 17:03ad237559b4

Fix-up options, scheduler list
author George Dunlap <george.dunlap@eu.citrix.com>
date Fri Jul 16 11:58:53 2010 +0100 (2010-07-16)
parents f289f886cbcc
children
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@2 13 HDRS = list.h workload.h sim.h stats.h options.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
george@14 24 simulator: simulator.o workloads.o sched_rr.o stats.o options.o sched_credit01.o sched_credit02.o sched_credit03.o
gdunlap@0 25 $(CC) $(CFLAGS) -o $@ $^