ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/ihost-perl/plugins/linux/Makefile
Revision: 1.3
Committed: Fri May 3 13:37:16 2002 UTC (22 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.2: +8 -2 lines
Log Message:
Fixed the Makefile for the -DOLDLIBC that Pete did. "make oldlinux" now
builds a binary using the older-style libc stuff.

File Contents

# User Rev Content
1 tdb 1.3 # $Id: Makefile,v 1.2 2002/03/08 19:27:49 tdb Exp $
2 tdb 1.1
3     # where libukcprog can be found for compiling
4     LIBUKCPROG = ../libukcprog
5    
6     CFLAGS = -O3 -Wall
7    
8     INCLUDES = -I${LIBUKCPROG}
9     LIBS = -L${LIBUKCPROG} -lukcprog
10    
11     all: linux
12    
13     ${LIBUKCPROG}/libukcprog.a:
14     cd ${LIBUKCPROG} && $(MAKE) libukcprog.a
15    
16 tdb 1.2 linux.o: linux.c ${LIBUKCPROG}/ukcprog.h
17 tdb 1.1 ${CC} ${CFLAGS} -c ${INCLUDES} linux.c
18    
19     linux: linux.o ${LIBUKCPROG}/libukcprog.a
20     ${CC} -static ${CFLAGS} -o linux linux.o ${LIBS}
21    
22 tdb 1.3 oldlinux.o: linux.c ${LIBUKCPROG}/ukcprog.h
23     ${CC} -DOLDLIBC ${CFLAGS} -c -o oldlinux.o ${INCLUDES} linux.c
24    
25     oldlinux: oldlinux.o ${LIBUKCPROG}/libukcprog.a
26     ${CC} -static ${CFLAGS} -o oldlinux oldlinux.o ${LIBS}
27    
28 tdb 1.1 clean:
29 tdb 1.3 rm -f linux linux.o oldlinux oldlinux.o
30 tdb 1.1 cd ${LIBUKCPROG} && $(MAKE) clean