Show
Ignore:
Timestamp:
05/10/07 16:43:36 (20 months ago)
Author:
matthiasm
Message:

Added a new target to the Make system called 'libnewt' which creates a static newt library in 'build/libnewt.a'. This is verified to work on Ubuntu/Linux.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • NEWT0/trunk/Makefile.in

    r96 r102  
    2626LDSHARED = @LIBNEWT_LDSHARED@ 
    2727 
     28# declarations needed to creat a static library 
     29LIBCOMMAND    = @LIBCOMMAND@ 
     30LIBEXT        = @LIBEXT@ 
     31 
    2832prefix = @prefix@ 
    2933exec_prefix = @exec_prefix@ 
     
    3842 
    3943NEWT          = $(build)/newt$(EXEEXT) 
     44 
     45LIBNEWT       = $(build)/libnewt$(LIBEXT) 
    4046 
    4147MAINOBJ       = $(objdir)/main.o 
     
    7278OBJS          = $(MAINOBJ) $(UTILSOBJS) $(PARSEROBJS) $(COREOBJS) 
    7379 
     80LIBOBJS       = $(UTILSOBJS) $(PARSEROBJS) $(COREOBJS) 
     81 
    7482 
    7583###### 
     
    102110    $(CC) $(LDFLAGS) $(LIBS) $(OBJS) $(LIBS) -o $@ 
    103111 
     112 
     113### LIBNEWT static library 
     114 
     115libnewt: $(build) $(objdir) $(yytmp) $(LIBNEWT) $(LDIMPORT) 
     116 
     117$(LIBNEWT): $(LIBOBJS) 
     118    $(LIBCOMMAND) $@ $(LIBOBJS)  
    104119 
    105120