[go: up one dir, main page]

File: Makefile.win32

package info (click to toggle)
achilles 2-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 684 kB
  • sloc: sh: 2,600; cpp: 2,069; xml: 25; makefile: 7
file content (134 lines) | stat: -rw-r--r-- 4,005 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# ************** WARNING:
# This is an old Makefile, pre-autoconf.  You should attempt to use
# the autoconf generated Makefile before fiddling with this one

# *****************************************************************
# Briefly scan these (an oxymoron indeed!), and edit them to your system's
# settings

# Please read the _whole_ file or you will not be able to compile


# *****************************************************************

# If your compiler is not g++, put the proper one here
CC = g++

# If your remove without warnings command is something different.. change
RM = rm -f

# Put the location of your X11 libraries here (if applicable; not for win32)
LOC_XLIBS = /usr/X11R6/lib

# Put the location of your SDL libraries here
LOC_SDL_LIBS = /usr/lib

# Put the location of your SDL header files here
LOC_SDL_HEADERS = /usr/include/SDL

# Put the location of your OpenGL header files here
LOC_GL_HEADERS = /usr/include/GL

# Put the location of your OpenGL library files here
LOC_GL_LIBS = /usr/X11R6/lib

# *****************************************************************




# *****************************************************************
# Uncomment these if your system supports zlib and libpng,
# And you want PNG screenshot support

 PNG_CCFLAGS = -DPNG_SCREENSHOT
 PNG_LDFLAGS = -lpng -lz

# *****************************************************************


# Uncomment the section that is relevant for your system
# Leave the others commented

# *****************************************************************
# Uncomment these for a Linux system

# CCFLAGS = $(PNG_CCFLAGS) -O2 -Wall -I$(LOC_SDL_HEADERS) -I$(LOC_GL_HEADERS)
# LDFLAGS = -L$(LOC_SDL_LIBS) -L$(LOC_XLIBS) -L$(LOC_GL_LIBS) -lSDL -lGLU -lGL -lXmu -lXi -lX11 -lm $(PNG_LDFLAGS) 

# *****************************************************************



# *****************************************************************
# Uncomment these for a Solaris system

# CCFLAGS = $(PNG_CCFLAGS) -O2 -Wall -I$(LOC_SDL_HEADERS) -I$(LOC_GL_HEADERS)
# LDFLAGS = -L$(LOC_SDL_LIBS) -L$(LOC_XLIBS) -L$(LOC_GL_LIBS) -lSDL -lglut -lGLU -lGL -lXmu -lXi -lX11 -lm $(PNG_LDFLAGS) -lposix4

# *****************************************************************


# *****************************************************************
# Uncomment these for a Win32 system (Cygwin)

CCFLAGS = $(PNG_CCFLAGS) -O2 -Wall -I$(LOC_SDL_HEADERS) -I$(LOC_GL_HEADERS)
LDFLAGS = -L$(LOC_SDL_LIBS) -L$(LOC_GL_LIBS) -lSDL -lglut32 -lglu32 -lopengl32 -lm $(PNG_LDFLAGS)

# *****************************************************************


# READ BELOW AND COMMENT OUT THE LINES BELOW: "COMMENT THIS OUT"
# Everything else should be just fine as it is

# *****************************************************************



# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

# comments are lines that start with '#'

# COMMENT THESE LINES OUT (everything from here to DONE)

#comment_this:	
#	@echo "*******************************************************"
#	@echo "YOU DIDN'T FOLLOW INSTRUCTIONS AND READ THE Makefile"
#	@echo "BEFORE COMPILING DID YOU?  PLEASE DO THAT BEFORE"
#	@echo "PROCEEDING."
#	@echo "*******************************************************"
#	@exit

# DONE

# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

# You should not need to edit anything below this

FILES = main universe opengl orglist org idserver id vector world gene angle \
	braininfo hebbian energy color quicksort license screenshot
CCFILES = $(foreach FILE,$(FILES),$(FILE).cc)
OFILES = $(foreach FILE,$(FILES),$(FILE).o)
PROGNAME = achilles

all: $(PROGNAME)

$(PROGNAME): $(OFILES)
	$(CC) -o $(PROGNAME) $(OFILES) $(LDFLAGS)

.cc.o:
	$(CC) $(CCFLAGS) -c $< -o $@


clean:
	$(RM) $(PROGNAME) $(PROGNAME).dep core $(OFILES)

dep: depend

depend:	
	$(CC) $(CCFLAGS) -MM $(CCFILES) > $(PROGNAME).dep

-include $(PROGNAME).dep


# *****************************************************************