source: Swollen/swwreader/Makefile @ 371

Last change on this file since 371 was 89, checked in by darran, 19 years ago
File size: 1.1 KB
Line 
1
2#
3#  Mac OS X Makefile
4#
5
6TOPDIR           =  ..
7
8OPTIMIZATION     =  -O2
9#OPTIMIZATION     =  -g
10
11NETCDF_INCLUDE   =  /sw/include
12OSG_INCLUDE      =  ${OSGHOME}/include
13LOCAL_INCLUDE    =  $(TOPDIR)/include
14GDAL_INCLUDE     =  `gdal-config --cflags`
15INCLUDES         =  -I $(LOCAL_INCLUDE) -I $(NETCDF_INCLUDE) -I $(OSG_INCLUDE) $(GDAL_INCLUDE)
16
17CARBON_LIB       =  -framework Carbon
18GL_LIBS          =  -framework OpenGL
19NETCDF_LIBS      =  -lnetcdf
20X_LIBS           =  -lX11
21GDAL_LIBS        =  `gdal-config --libs`
22OTHER_LIBS       =  -lm -lstdc++ -lobjc
23LIBS            +=  -losg -losgDB -lOpenThreads $(NETCDF_LIBS) $(GL_LIBS) $(X_LIBS) $(OTHER_LIBS) $(CARBON_LIB) $(GDAL_LIBS)
24LIBDIRS          =  -L/usr/lib -L/usr/X11R6/lib -L/sw/lib -L/usr/local/lib
25
26NAME             =  swwreader
27TARGET           =  $(TOPDIR)/bin/lib$(NAME).dylib
28
29
30$(TARGET) : $(NAME).o
31        g++ $(OPTIMIZATION) -dynamiclib -F/System/Library/Frameworks $(LIBDIRS) $(NAME).o $(LIBS) -o $(TARGET)
32
33
34$(NAME).o : $(NAME).cpp $(LOCAL_INCLUDE)/$(NAME).h
35        g++ $(OPTIMIZATION) $(INCLUDES) -c $(NAME).cpp
36
37
38clean :
39        rm -f *.o *~ $(TARGET)
40
Note: See TracBrowser for help on using the repository browser.