#SHELL = /bin/sh
# decide on compiler and flags depending on host

CC = gcc
CFLAGS = -DTOPOLOGY_NSFNET
ALL_CFLAGS = -O3 $(CFLAGS)

OBJS = skiplist/skiplist.o ops_fcfs.o
LIBS = -lm
EXE = ops_fcfs

# pattern rule to compile object files from C files
%.o : %.c Makefile
	$(CC) $(ALL_CFLAGS) -c $< -o $@

all: $(EXE)

$(EXE): $(OBJS) Makefile
	$(CC) $(ALL_CFLAGS) $(OBJS) -o $(EXE) $(LIBS)

.PHONY : clean
clean:
	rm -f $(OBJS) $(EXE)