Project Parser
* c_compiler from http://www.csd.uwo.ca/courses/CS447a/parts/ansi-c-grammar/
* calc from the bison documentation
committer: Markus Bröker <mbroeker@largo.homelinux.org>
#!/bin/bash
CC=g++
LD=ld
CFLAGS=-Wall -O2 -ansi
LDFLAGS=-lSDL
INCLUDE=include
CONFIG=-DSTEP=2
OBJECTS=pmc.o cube.o main.o
.SUFFIXES: .cc
.cc.o:
$(CC) -c $(CFLAGS) -I$(INCLUDE) $(CONFIG) $<
all: pmc
pmc: $(OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@
.PHONY: clean
clean:
rm -f *.[oae];
rm -f *~;
rm -f pmc glcube