IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3183


Ignore:
Timestamp:
Feb 9, 2005, 4:44:05 PM (21 years ago)
Author:
jhoblitt
Message:

build libpsdb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/psdb/makefile

    r3126 r3183  
    11SHELL=/bin/sh
    22CFG=/usr/bin/mysql_config
    3 CFLAGS=-g -O0 -pipe -fPIC -Wall -pedantic -std=c99 -L/usr/local/lib -I/usr/local/include
     3CFLAGS=-g -O0 -pipe -fpic -Wall -pedantic -std=c99 -L/usr/local/lib -I/usr/local/include
    44MYLIBS:=$(shell $(CFG) --libs)
    55MYFLAGS:=$(shell $(CFG) --cflags)
     
    88objects=test.o psleak.o psDB.o
    99
    10 all: test
     10all: psdb
    1111
    12 test: $(objects)
    13         $(CC) $(CFLAGS) -o test $(objects) $(LIBS) $(MYFLAGS) $(MYLIBS)
     12test: psdb test-bin
     13        LD_LIBRARY_PATH=. ./test
     14     
     15test-bin: test.o
     16        $(CC) $(CFLAGS) -o test -L./ -lpsdb
     17
     18psdb: $(objects)
     19        $(CC) $(CFLAGS) -shared -o libpsdb.so $(objects) $(LIBS) $(MYFLAGS) $(MYLIBS)
    1420
    1521$(objects): %.o : %.c
Note: See TracChangeset for help on using the changeset viewer.