# ::::::::::::::   
# smsPrint/Makefile
# ::::::::::::::

NAME = smsPrint
INSTALL_DIR = ../bin
SRCROOT = /dist/sound_music/sms/smsPrint
HDR_DIR = 
LIB_DIR = ../library

SRCS =  smsPrint.c

CFLAGS = -O -g -L$(LIB_DIR)
LIBS = -lNeXT_s -lsys_s -lSms 

all: $(NAME)

$(NAME): $(SRCS)
	$(CC) $(CFLAGS) $(SRCS) -o $(NAME) $(LIBS)

lean:
	/bin/rm -f *.o

clean: lean
	/bin/rm -f $(NAME)

installsrc:
	-rm -rf $(SRCROOT)
	mkdirs -m 755 $(SRCROOT)
	cp $(SRCS) README Makefile $(SRCROOT)
	chmod 444 $(SRCROOT)/*

install: $(NAME)
	install -s $(NAME) $(INSTALL_DIR)

