kaio
[Top] [All Lists]

makefile adding build for static library and optimizations

To: kaio <kaio@xxxxxxxxxxx>
Subject: makefile adding build for static library and optimizations
From: Jeff Graham <jgraham@xxxxxxxxxxxxxx>
Date: Tue, 12 Dec 2000 08:40:11 -0600
Sender: owner-kaio@xxxxxxxxxxx
Everyone,

Here is a patched Makefile for kaio, which builds a static library in addition
to the shared
one....

-Jeff

SHELL=bash

CC      =$(shell which cc)
CFLAGS  += -O6 -mpentium -pthread -I/usr/src/linux/include

INCLUDE=        -I. -I../../linux/include

TARGETS=libdba.so libdba.a

all: $(TARGETS)

libdba.so: aiolib.c
        $(CC) -o $@ -shared $(CFLAGS) $(INCLUDE) $<

libdba.a: aiolib.c
        $(CC) -static $(CFLAGS) -s -c $<
        ar -rcs $@ aiolib.o

install: libdba.so libdba.a
        install -m 0755 libdba.so $(INSTALLROOT)/lib
        install -m 0755 libdba.a $(INSTALLROOT)/lib


clean:
        - @ rm -f $(TARGETS) *.o
<Prev in Thread] Current Thread [Next in Thread>
  • makefile adding build for static library and optimizations, Jeff Graham <=