gdunlap/sched-sim.hg

view Makefile @ 2:1d7310217c5a

Add command-line options
author George Dunlap <gdunlap@xensource.com>
date Wed Oct 14 16:12:26 2009 +0100 (2009-10-14)
parents d27bb3c56e71
children 18f3d6e25ffc
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
25 $(CC) $(CFLAGS) -o $@ $^