IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2006, 3:59:20 PM (20 years ago)
Author:
eugene
Message:

improved lib/include flags, enable shared objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/Makefile

    r10072 r10305  
    77SDIR    =       $(HOME)/pantasks
    88#
    9 DESTBIN =       $(LBIN)
    10 DESTLIB =       $(LLIB)
    11 DESTINC =       $(LINC)
    12 DESTMAN =       $(LMAN)
    13 DESTHLP =       $(LHLP)/pantasks
     9DESTBIN =       $(BINDIR)
     10DESTLIB =       $(LIBDIR)
     11DESTINC =       $(INCDIR)
     12DESTMAN =       $(MANDIR)
     13DESTHLP =       $(HELPDIR)/pantasks
    1414
    1515#  compile flags
    16 INCS    =       -I$(INC) -I$(LINC) -I$(XINC)
    17 CFLAGS  =       $(INCS) -DHELPDIR_DEFAULT=$(DESTHLP)
     16CFLAGS  =       -I$(INC) -I$(INCDIR) $(INCDIRS) -DHELPDIR_DEFAULT=$(DESTHLP)
    1817
    1918# link flags
    20 LIBS    =       -L$(LIB) -L$(LLIB) -L$(XLIB)
    21 LIBS1   =       -lsocket -lnsl -lreadline $(TLIB) -ljpeg -ldvo -lkapa -lFITS -lohana -lX11 -lpthread -lm
     19LIBS1   =       -ldvo -lkapa -lFITS -lohana $(LIBFLAGS)
    2220LIBS2   =       -lbasiccmd -ldatacmd -lastrocmd -lshell -ldata
    23 LFLAGS  =       $(LIBS) $(LIBS2) $(LIBS1)
     21LFLAGS  =       -L$(LIB) -L$(LIBDIR) $(LIBDIRS) $(LIBS2) $(LIBS1)
    2422
    2523# sched user commands and support functions ########################
     
    9391$(DESTLIB)/libdatacmd.a
    9492
    95 pantasks: $(BIN)/pantasks.$(ARCH)
    96 $(BIN)/pantasks.$(ARCH) : $(single) $(funcs) $(cmds) $(libs)
     93pantasks: $(BIN)/pantasks.$(ARCH) $(libs)
     94$(BIN)/pantasks.$(ARCH) : $(single) $(funcs) $(cmds)
    9795
    98 pantasks_client: $(BIN)/pantasks_client.$(ARCH)
    99 $(BIN)/pantasks_client.$(ARCH) : $(client) $(libs)
     96pantasks_client: $(BIN)/pantasks_client.$(ARCH) $(libs)
     97$(BIN)/pantasks_client.$(ARCH) : $(client)
    10098
    101 pantasks_server: $(BIN)/pantasks_server.$(ARCH)
    102 $(BIN)/pantasks_server.$(ARCH) : $(server) $(funcs) $(cmds) $(libs)
     99pantasks_server: $(BIN)/pantasks_server.$(ARCH) $(libs)
     100$(BIN)/pantasks_server.$(ARCH) : $(server) $(funcs) $(cmds)
    103101        @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi
    104102        $(CC) -o $@ $^ $(LFLAGS)
Note: See TracChangeset for help on using the changeset viewer.