#
# Makefile for the FreeDOS C Library
#

# What we should call the resulting library
LIBNAME=time

# Common definitions
include ..\common.mak

# The object files to be built normally
SRC=
OBJS=

# All the object files
OBJS_ALL=$(OBJS) $(OBJS_TEST)

# Object files for testing
OBJS_TEST=t.c

all: 

library: 
	-echo No source file(s) present in $(LIBNAME)

$(LIBNAME).lib: $(OBJS)
	-for %i in ($(LIBNAME).lib $(LIBNAME).lst) do if exist %i del %i >nul
	$(AR) $(LIBNAME) $(ARFLAGS) + $(OBJS_1)
	$(CP) $@ ..\obj\$@
#	$(CP) $(LIBNAME).lst ..\obj\$(LIBNAME).lst

clean:
	-for %i in ($(OBJS_1)) do if exist %i del %i >nul
	-for %i in ($(LIBNAME).lib $(LIBNAME).lst) do if exist %i del %i >nul
	-for %i in (*.err) do del %i >nul
