| 1 |
# ************** WARNING: |
| 2 |
# This is an old Makefile, pre-autoconf. You should attempt to use |
| 3 |
# the autoconf generated Makefile before fiddling with this one |
| 4 |
|
| 5 |
|
| 6 |
# ***************************************************************** |
| 7 |
# Briefly scan these (an oxymoron indeed!), and edit them to your system's |
| 8 |
# settings |
| 9 |
|
| 10 |
# Please read the _whole_ file or you will not be able to compile |
| 11 |
|
| 12 |
|
| 13 |
# ***************************************************************** |
| 14 |
|
| 15 |
# If your compiler is not g++, put the proper one here |
| 16 |
CC = g++ |
| 17 |
|
| 18 |
# If your remove without warnings command is something different.. change |
| 19 |
RM = rm -f |
| 20 |
|
| 21 |
# Put the location of your X11 libraries here (if applicable; not for win32) |
| 22 |
LOC_XLIBS = /usr/X11R6/lib |
| 23 |
|
| 24 |
# Put the location of your SDL libraries here |
| 25 |
LOC_SDL_LIBS = /usr/lib |
| 26 |
|
| 27 |
# Put the location of your SDL header files here |
| 28 |
LOC_SDL_HEADERS = /usr/include/SDL |
| 29 |
|
| 30 |
# Put the location of your OpenGL header files here |
| 31 |
LOC_GL_HEADERS = /usr/include/GL |
| 32 |
|
| 33 |
# Put the location of your OpenGL library files here |
| 34 |
LOC_GL_LIBS = /usr/X11R6/lib |
| 35 |
|
| 36 |
# ***************************************************************** |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
# ***************************************************************** |
| 42 |
# Uncomment these if your system supports zlib and libpng, |
| 43 |
# And you want PNG screenshot support |
| 44 |
|
| 45 |
PNG_CCFLAGS = -DPNG_SCREENSHOT |
| 46 |
PNG_LDFLAGS = -lpng -lz |
| 47 |
|
| 48 |
# ***************************************************************** |
| 49 |
|
| 50 |
|
| 51 |
# Uncomment the section that is relevant for your system |
| 52 |
# Leave the others commented |
| 53 |
|
| 54 |
# ***************************************************************** |
| 55 |
# Uncomment these for a Linux system |
| 56 |
|
| 57 |
# CCFLAGS = $(PNG_CCFLAGS) -O2 -Wall -I$(LOC_SDL_HEADERS) -I$(LOC_GL_HEADERS) |
| 58 |
# LDFLAGS = -L$(LOC_SDL_LIBS) -L$(LOC_XLIBS) -L$(LOC_GL_LIBS) -lSDL -lGLU -lGL -lXmu -lXi -lX11 -lm $(PNG_LDFLAGS) |
| 59 |
|
| 60 |
# ***************************************************************** |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
# ***************************************************************** |
| 65 |
# Uncomment these for a Solaris system |
| 66 |
|
| 67 |
CCFLAGS = $(PNG_CCFLAGS) -O2 -Wall -I$(LOC_SDL_HEADERS) -I$(LOC_GL_HEADERS) |
| 68 |
LDFLAGS = -L$(LOC_SDL_LIBS) -L$(LOC_XLIBS) -L$(LOC_GL_LIBS) -lSDL -lglut -lGLU -lGL -lXmu -lXi -lX11 -lm $(PNG_LDFLAGS) -lposix4 |
| 69 |
|
| 70 |
# ***************************************************************** |
| 71 |
|
| 72 |
|
| 73 |
# ***************************************************************** |
| 74 |
# Uncomment these for a Win32 system (Cygwin) |
| 75 |
|
| 76 |
# CCFLAGS = $(PNG_CCFLAGS) -O2 -Wall -I$(LOC_SDL_HEADERS) -I$(LOC_GL_HEADERS) |
| 77 |
# LDFLAGS = -L$(LOC_SDL_LIBS) -L$(LOC_GL_LIBS) -lSDL -lglut32 -lglu32 -lopengl32 -lm $(PNG_LDFLAGS) |
| 78 |
|
| 79 |
# ***************************************************************** |
| 80 |
|
| 81 |
|
| 82 |
# READ BELOW AND COMMENT OUT THE LINES BELOW: "COMMENT THIS OUT" |
| 83 |
# Everything else should be just fine as it is |
| 84 |
|
| 85 |
# ***************************************************************** |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 90 |
|
| 91 |
# comments are lines that start with '#' |
| 92 |
|
| 93 |
# COMMENT THESE LINES OUT (everything from here to DONE) |
| 94 |
|
| 95 |
#comment_this: |
| 96 |
# @echo "*******************************************************" |
| 97 |
# @echo "YOU DIDN'T FOLLOW INSTRUCTIONS AND READ THE Makefile" |
| 98 |
# @echo "BEFORE COMPILING DID YOU? PLEASE DO THAT BEFORE" |
| 99 |
# @echo "PROCEEDING." |
| 100 |
# @echo "*******************************************************" |
| 101 |
# @exit |
| 102 |
|
| 103 |
# DONE |
| 104 |
|
| 105 |
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 106 |
|
| 107 |
# You should not need to edit anything below this |
| 108 |
|
| 109 |
FILES = main universe opengl orglist org idserver id vector world gene angle \ |
| 110 |
braininfo hebbian energy color quicksort license screenshot |
| 111 |
CCFILES = $(foreach FILE,$(FILES),$(FILE).cc) |
| 112 |
OFILES = $(foreach FILE,$(FILES),$(FILE).o) |
| 113 |
PROGNAME = achilles |
| 114 |
|
| 115 |
all: $(PROGNAME) |
| 116 |
|
| 117 |
$(PROGNAME): $(OFILES) |
| 118 |
$(CC) -o $(PROGNAME) $(OFILES) $(LDFLAGS) |
| 119 |
|
| 120 |
.cc.o: |
| 121 |
$(CC) $(CCFLAGS) -c $< -o $@ |
| 122 |
|
| 123 |
|
| 124 |
clean: |
| 125 |
$(RM) $(PROGNAME) $(PROGNAME).dep core $(OFILES) |
| 126 |
|
| 127 |
dep: depend |
| 128 |
|
| 129 |
depend: |
| 130 |
$(CC) $(CCFLAGS) -MM $(CCFILES) > $(PROGNAME).dep |
| 131 |
|
| 132 |
-include $(PROGNAME).dep |
| 133 |
|
| 134 |
|
| 135 |
# ***************************************************************** |