Commit f576eeb6 authored by Millian Poquet's avatar Millian Poquet

Simple Makefile added (might be useful to debug compilation later)

parent 5ff8f9d6
CC=clang
CFLAGS=-Wall -Wextra
LDFLAGS=-lsimgrid -lm -ljansson
all: batsim batexec
batsim: batsim.o job.o export.o machines.o utils.o
$(CC) -o $@ $^ $(LDFLAGS)
batexec: batexec.o job.o export.o machines.o utils.o
$(CC) -o $@ $^ $(LDFLAGS)
batsim.o: batsim.c batsim.h job.h export.h machines.h utils.h
$(CC) -o $@ -c $< $(CFLAGS)
batexec.o: batexec.c job.h utils.h
$(CC) -o $@ -c $< $(CFLAGS)
job.o: job.c job.h utils.h
$(CC) -o $@ -c $< $(CFLAGS)
export.o: export.c export.h job.h utils.h
$(CC) -o $@ -c $< $(CFLAGS)
machines.o: machines.c machines.h
$(CC) -o $@ -c $< $(CFLAGS)
utils.o: utils.c utils.h job.h
$(CC) -o $@ -c $< $(CFLAGS)
clean:
rm -f *.o
mrproper: clean
rm -f batsim batexec
distclean: mrproper
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment