# PSX2LIB 1.0b
# 
# PSX2 OpenSource Project
# (C)2001, Gustavo Scotti (gustavo@scotti.com)
#
# Makefile Structure based on KOS Makefiles by Dan Potter

TARGET = npmputs.elf
OBJS = npmputs.o

all: clean $(TARGET)

clean:
	-rm -f $(TARGET) $(OBJS)
	
$(TARGET): $(OBJS)
	$(PSX2LIB_CC) $(PSX2LIB_CFLAGS) $(PSX2LIB_LDFLAGS) -Tlinkfile -Wl,-Ttext=0x100000 -o $(TARGET) $(PSX2LIB_START) \
	$(OBJS)  $(DATAOBJS) $(OBJEXTRA) -L$(PSX2LIB_BASE)/$(PSX2LIB_ARCH)/lib -lkernel -lc -lm

run: 
	$(PSX2LIB_LOADER) $(TARGET)

dist:
	rm -f $(OBJS)
	$(PSX2LIB_STRIP) $(TARGET)
	
include ${PSX2LIB_BASE}/Makefile.rules

