
# Para Linux/i386
SYSDEP= nStack-i386.o
MAKELIB= ar-ranlib
DEFINES=
#
# Para Sparc/Solaris
# SYSDEP= nStack-sparc.o
# MAKELIB= ar-lorder
# DEFINES= -DREOPENSTDIO -DSOLARIS
#
# Para Sparc/SunOS 4.X.X:
# SYSDEP= nStack-sparc.o
# MAKELIB= ar-ranlib
# DEFINES= -DREOPENSTDIO -DNO_UNDERSCORE
# OBS. IMPORTANTE: el directorio /usr/ccs/bin debe ir antes que /bin
# /usr/bin y /usr/local/bin en el path de busqueda de comandos

#------ fin parte parte dependiente -----

NSYSTEM= nProcess.o nTime.o nMsg.o nSem.o nMonitor.o nIO.o nDep.o \
         nMain.o nQueue.o nOther.o fifoqueues.o nMutex.o $(SYSDEP)
LIBNSYS= ../lib/libnSys.a

CFLAGS= -ggdb -I../include $(DEFINES)
LFLAGS= -ggdb

all: $(LIBNSYS)

.SUFFIXES:
.SUFFIXES: .o .c .s

.c.o .s.o:
	gcc -c $(CFLAGS) $<

$(LIBNSYS): $(NSYSTEM) $(MAKELIB)
	rm -rf $(LIBNSYS)
	sh $(MAKELIB) $@ $(NSYSTEM)

clean:
	rm -f *.o *~
