gdunlap/sched-sim.hg

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Tue Oct 13 16:06:36 2009 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +CC = gcc
     1.5 +
     1.6 +CFLAGS += -g
     1.7 +CFLAGS += -fno-strict-aliasing
     1.8 +CFLAGS += -std=gnu99
     1.9 +CFLAGS += -Wall -Wstrict-prototypes
    1.10 +CFLAGS += -Wno-unused-value
    1.11 +CFLAGS += -Wdeclaration-after-statement
    1.12 +CFLAGS  += -Werror
    1.13 +
    1.14 +BIN      = simulator
    1.15 +
    1.16 +HDRS = list.h workload.h sim.h stats.h
    1.17 +
    1.18 +all: $(BIN)
    1.19 +
    1.20 +.PHONY: clean
    1.21 +clean:
    1.22 +	$(RM) *.a *.so *.o $(BIN) $(LIBBIN)
    1.23 +
    1.24 +%.o: %.c $(HDRS) Makefile
    1.25 +	$(CC) $(CFLAGS) -c -o $@ $<
    1.26 +
    1.27 +simulator: simulator.o workloads.o sched_rr.o stats.o
    1.28 +	$(CC) $(CFLAGS) -o $@ $^
    1.29 \ No newline at end of file