Rev | Line | |
---|
[6] | 1 | |
---|
| 2 | # |
---|
| 3 | # Mac OS X Makefile |
---|
| 4 | # |
---|
| 5 | |
---|
| 6 | TOPDIR = .. |
---|
| 7 | |
---|
| 8 | OPTIMIZATION = -O2 |
---|
[89] | 9 | #OPTIMIZATION = -g |
---|
[6] | 10 | |
---|
| 11 | NETCDF_INCLUDE = /sw/include |
---|
| 12 | OSG_INCLUDE = ${OSGHOME}/include |
---|
| 13 | LOCAL_INCLUDE = $(TOPDIR)/include |
---|
[62] | 14 | GDAL_INCLUDE = `gdal-config --cflags` |
---|
| 15 | INCLUDES = -I $(LOCAL_INCLUDE) -I $(NETCDF_INCLUDE) -I $(OSG_INCLUDE) $(GDAL_INCLUDE) |
---|
[6] | 16 | |
---|
| 17 | CARBON_LIB = -framework Carbon |
---|
| 18 | GL_LIBS = -framework OpenGL |
---|
| 19 | NETCDF_LIBS = -lnetcdf |
---|
| 20 | X_LIBS = -lX11 |
---|
[62] | 21 | GDAL_LIBS = `gdal-config --libs` |
---|
[6] | 22 | OTHER_LIBS = -lm -lstdc++ -lobjc |
---|
[62] | 23 | LIBS += -losg -losgDB -lOpenThreads $(NETCDF_LIBS) $(GL_LIBS) $(X_LIBS) $(OTHER_LIBS) $(CARBON_LIB) $(GDAL_LIBS) |
---|
[6] | 24 | LIBDIRS = -L/usr/lib -L/usr/X11R6/lib -L/sw/lib -L/usr/local/lib |
---|
| 25 | |
---|
| 26 | NAME = swwreader |
---|
| 27 | TARGET = $(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 | |
---|
| 38 | clean : |
---|
| 39 | rm -f *.o *~ $(TARGET) |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.