Skip to content

Instantly share code, notes, and snippets.

@binshengliu
Created September 3, 2012 15:19
Show Gist options
  • Save binshengliu/3610026 to your computer and use it in GitHub Desktop.
Save binshengliu/3610026 to your computer and use it in GitHub Desktop.
CC=gcc
CFLAGS=-O3 -funroll-loops -c
LDFLAGS=-O2
LDLIBS=-lm
SOURCES=MyBot.c YourCode.c ants.c
HEADERS=ants.h
OBJECTS=$(addsuffix .o, $(basename ${SOURCES}))
EXECUTABLE=MyBot
all: $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(OBJECTS): %.o: %.c $(HEADERS)
clean:
rm -f $(EXECUTABLE) $(OBJECTS)
.PHONY: all clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment