view lib/Makefile @ 509:e06c429ab0eb

lib/errno: added another error code (ECORRUPT) and C-strings for each The C-strings are currently unused, but the CP shell could probably use them. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Mon, 25 Apr 2011 09:09:26 -0400
parents 00b487fbf5d7
children 0c08f7d478d2
line wrap: on
line source

AS=$(CROSS_COMPILE)as
CC=$(CROSS_COMPILE)gcc
CFLAGS=-g -fno-strict-aliasing -fno-builtin -nostdlib -Wall -m64 -I ../include/ -include ../include/types.h -O2
NUCLEUSCFLAGS=

LIBS=clock.a		\
     digest.a		\
     string.a		\
     ebcdic.a		\
     errno.a

include ../cp/scripts/Makefile.commands

all: $(LIBS)

clock.a: clock.o
	$(call ar,$@,$^)

digest.a: digest.o
	$(call ar,$@,$^)

string.a: string.o vsprintf.o
	$(call ar,$@,$^)

ebcdic.a: ebcdic.o
	$(call ar,$@,$^)

errno.a: errno.o
	$(call ar,$@,$^)

%.o: %.c
	$(call c-to-o,$<,$@)

clean:
	$(call clean,*.o *.a)