summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/Makefile
blob: bfb8d82ff76a8e277493bb3cf0a9e4afff9d19fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
# This file is part of the Linux-8086 C library and is distributed
# under the GNU Library General Public License.

TOPDIR=../../../
include $(TOPDIR)Rules.make

CFLAGS+= -D_GCC_LIMITS_H_

LIBC=$(TOPDIR)libc.a

.S.s:
	$(CC) $(CFLAGS) -D__ASSEMBLY__ -traditional -E -o $*.s $<
.S.o:
	$(CC) $(CFLAGS) -c -o $*.o $<

include makefile.objs

all: $(LIBC)

$(LIBC): $(OBJ)
	$(AR) $(ARFLAGS) $@ $(OBJ)

transfer:
	-@rm -f ../include/stdio.h
	cp -p stdio.h ../include/.

clean:
	rm -f *.o