PL Machine Makefile
From Ben's Writing
Downloads
| PLMachine Project | PLMachine.tar.gz (zip) |
Information
We were given the source to the PL Machine interpreter; however, it came with no makefile. The following makefile will compile the sources in to an executable plm.
## # File : Makefile # Contents: Builds the PLMachine # Author : Ben Burnett # History : 09.02.2007 file created ## CC=g++ # no-deprecated gets rid of the warnings associated with old style coding CFLAGS=-c -Wall -Wno-deprecated LDFLAGS= SOURCES=driver.cc interp.cc OBJECTS=$(SOURCES:.cc=.o) EXECUTABLE=plm all: $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTS) -o $@ .cc.o: $(CC) $(CFLAGS) $< -o $@ clean: rm -rf $(OBJECTS) $(EXECUTABLE) ## # Emacs Configuration # Local Variables: # mode: BSDmakefile # End: ##