daily pastebin goal
25%
SHARE
TWEET

HLLib New Makefile

kevincox Feb 14th, 2013 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CXX             =       g++
  2. HLLIB_VERS      =       2.3.0
  3. LDFLAGS         =       -shared -Wl,-soname,libhl.so.2
  4. CXXFLAGS        =       -O2 -g -fpic -funroll-loops -fvisibility=hidden
  5. PREFIX          =       /usr/local
  6. sources         =       BSPFile.cpp Checksum.cpp DebugMemory.cpp DirectoryFile.cpp \
  7.                         DirectoryFolder.cpp DirectoryItem.cpp Error.cpp FileMapping.cpp \
  8.                         FileStream.cpp GCFFile.cpp GCFStream.cpp HLLib.cpp \
  9.                         Mapping.cpp MappingStream.cpp MemoryMapping.cpp MemoryStream.cpp \
  10.                         NCFFile.cpp NullStream.cpp PAKFile.cpp Package.cpp ProcStream.cpp \
  11.                         SGAFile.cpp Stream.cpp StreamMapping.cpp Utility.cpp VBSPFile.cpp \
  12.                         VPKFile.cpp WADFile.cpp Wrapper.cpp XZPFile.cpp ZIPFile.cpp
  13. objs            =       $(sources:.cpp=.o)
  14.  
  15. .cpp.o:
  16.         $(CXX) -c $(CXXFLAGS) -o $@ $<
  17.  
  18. all: libhl.so.$(HLLIB_VERS)
  19.  
  20. clean:
  21.         rm -f \#* *~ *.o *.so.*
  22.  
  23. install: libhl.so.$(HLLIB_VERS)
  24.         install -g root -m 0755 -o root -d $(PREFIX)/lib $(PREFIX)/include
  25.         install -g root -m 0644 -o root libhl.so.$(HLLIB_VERS) $(PREFIX)/lib
  26.         install -g root -m 0644 -o root ../lib/HLLib.h $(PREFIX)/include/hl.h
  27.         ln -fs $(PREFIX)/lib/libhl.so.$(HLLIB_VERS) $(PREFIX)/lib/libhl.so.2
  28.         ln -fs $(PREFIX)/lib/libhl.so.$(HLLIB_VERS) $(PREFIX)/lib/libhl.so
  29.  
  30. libhl.so.$(HLLIB_VERS): $(objs)
  31.         $(CXX) $(LDFLAGS) -o $@ $(objs)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top