Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F11222154
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
904 B
Subscribers
None
Makefile
View Options
CXX = g++
SRCDIR = ../src
LIBDIR = ../lib
RM = rm -f
SHELL = /bin/sh
ARCH=$(shell uname -a)
ifeq (x86_64,$(findstring x86_64,$(ARCH)))
all: i64
else
all: i32
endif
OBJS = $(LIBDIR)/Chunk.o $(LIBDIR)/Geometry.o $(LIBDIR)/SimEvent.o $(LIBDIR)/Texture.o $(LIBDIR)/ReadCards.o
i32 : main.cpp libfrog.so
@echo "compilation on a 32bits machine"
$(CXX) -Wall -o main main.cpp -Dlinux -L/usr/X11R6/lib -lGLU -lm -lGL -lX11 -L$(LIBDIR) -lfrog -L$(LIBDIR) -lglut32
i64 : main.cpp libfrog.so
@echo "compilation on a 64bits machine"
$(CXX) -Wall -o main main.cpp -Dlinux -L/usr/X11R6/lib64 -lGLU -lm -lGL -lX11 -L$(LIBDIR) -lfrog -L$(LIBDIR) -lglut64
$(LIBDIR)/%.o : $(SRCDIR)/%.cpp
$(CXX) -c $< -fPIC -o $@
$(LIBDIR)/%.o : %.cpp
$(CXX) -c $< -fPIC -o $@
libfrog.so : $(OBJS)
$(CXX) -shared -Wl,-soname,$(LIBDIR)/$@ -o $(LIBDIR)/$@ $(OBJS) -lc
clean :
$(RM) $(LIBDIR)/*.o $(LIBDIR)/libfrog.so
File Metadata
Details
Attached
Mime Type
text/x-makefile
Expires
Wed, May 14, 11:29 AM (14 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5099032
Default Alt Text
Makefile (904 B)
Attached To
rFROGSVN frogsvn
Event Timeline
Log In to Comment