home *** CD-ROM | disk | FTP | other *** search
Makefile | 2005-10-30 | 1.4 KB | 44 lines |
- # This is an example makefile for Linux
- ALL = LinuxExample2
-
- # These file should get made first, so that the cpp/h files are not missing for the rest of the files
- COBJFILES = _Def_Example2.o _RO_Test1.o
- # These files are made after the ROL compiler files
- OBJFILES = Test1.o main.o
-
- # These files are the ones created by the ROLCompiler
- ROLOBJFILES = _Def_Example2.cpp _Def_Example2.h _RO_Test1.cpp _RO_Test1.h
-
- # The libraries
- REPLICANETLIBS = \
- ../ReplicaNetPublic/Libs/LibLinux/RNReplicaNet.a \
- ../ReplicaNetPublic/Libs/LibLinux/RNXPSession.a \
- ../ReplicaNetPublic/Libs/LibLinux/RNXPURL.a \
- ../ReplicaNetPublic/Libs/LibLinux/RNXPCompression.a \
- ../ReplicaNetPublic/Libs/LibLinux/RNXPSockets.a \
- ../ReplicaNetPublic/Libs/LibLinux/RNPlatform.a \
-
-
-
- CFLAGS = -O2 -w -I../ReplicaNetPublic/Includes/
- CPPFLAGS = $(CFLAGS)
-
- # The first target
- all: $(ALL)
-
-
- # The clean target
- clean:
- rm -f core ${ALL} $(OBJFILES) $(COBJFILES)
- # Remove the ROL compiled files
- rm -f $(ROLOBJFILES)
-
- # Have the COBJFILES files first so that they get built before the other source files
- LinuxExample2: $(COBJFILES) $(OBJFILES) $(REPLICANETLIBS)
- $(CC) -o $@ $^ -lstdc++ -lpthread
-
- # A rule to make cpp files from the rol files, the ROLCompiler takes the additional include directory to the lang directory
- %.cpp:%.rol
- ../ReplicaNetPublic/RNROLCompiler/bin/RNROLCompiler -v1 -I../ReplicaNetPublic/RNROLCompiler/lang/ $^
-
-