Next: Appendix - Useful links
Up: A 2-player coordination game
Previous: The C-Source
  Contents
  Index
#
# Makefile for the project "game"
# Author: Oliver Kirchkamp
# Date: 14. 12. 1997...
# Purpose: Example for a Course on WWW-Experiments
#
# our C-compiler will be gcc:
CC=gcc $(CFLAGS) $(INCL)
AR=ar
# we call the compiler with some flags
# -g stands for "allow debugging"
# -Wall stands for "tell me all Warnings, thus the compiler
# will be quite verbose
CFLAGS=-g -Wall
# we have some files that we wish to include, but that we do not
# want to store in the same directory with our source files:
INCL=-I../include/
# we also want to link with some local libraries
# -L tells us where to find them
# -l specifies them
LIBS=-L../lib/ -lcgihtml -lm
# here we just define a list of our binaries
# this is useful when we want to install everything lateron
# but is also useful, wenn we call "make all", since we define
# make all to make all binaries
BINS=nph-game
all: $(BINS) install
install:
cp $(BINS) ../bin/
game.o: game.c
$(CC) -c game.c
nph-game: game.o
$(CC) game.o $(LIBS) -o nph-game
Next: Appendix - Useful links
Up: A 2-player coordination game
Previous: The C-Source
  Contents
  Index
Oliver Kirchkamp