| 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> |
|---|---|---|
| ||
| Previous by Date: | errors when compiling -ansi -Wall -pedantic, Jeff Graham |
|---|---|
| Next by Date: | Re: errors when compiling -ansi -Wall -pedantic, Rajagopal Ananthanarayanan |
| Previous by Thread: | errors when compiling -ansi -Wall -pedantic, Jeff Graham |
| Next by Thread: | Linux 2.4.0-test10 RAWIO Support, David M. Grimes |
| Indexes: | [Date] [Thread] [Top] [All Lists] |