summaryrefslogblamecommitdiffstats
path: root/mbbsd/Makefile
blob: 33db03b65a1996226c2030f73e9eca693b44c1d7 (plain) (tree)
1
2
3
4
5
6
7
8
                                                    
 
                       
 
             
                                                                     
                                                                           
                                                                      


                                                                        
                                                       


                  
                        
                               



                

                                                                      
 


                                                           





                                    


                                                 
                                                                        
                                                                         


                             
# $Id: Makefile,v 1.26 2003/06/22 04:32:38 in2 Exp $

.include "../pttbbs.mk"

PROG=   mbbsd
OBJS=   admin.o announce.o args.o bbs.o board.o cache.o cal.o card.o\
    chat.o chc_draw.o chc_net.o chc_play.o chc_rule.o chicken.o dark.o\
    edit.o friend.o gamble.o gomo.o gomo1.o guess.o indict.o io.o\
    kaede.o lovepaper.o mail.o mbbsd.o menu.o more.o name.o osdep.o\
    othello.o page.o read.o record.o register.o screen.o stuff.o\
    talk.o term.o topsong.o user.o vice.o vote.o xyz.o\
    voteboard.o syspost.o var.o toolkit.o passwd.o\
    calendar.o

.SUFFIXES: .c .o
.c.o:   ../include/var.h
    $(CC) $(CFLAGS) -c $*.c

all: $(PROG)

$(PROG): $(OBJS)
    sh ../util/newvers.sh
    $(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS) $(EXT_LIBS) vers.c

../include/var.h:   var.c
    perl ../util/parsevar.pl < var.c > ../include/var.h

test: $(PROG)
    killall -9 testmbbsd || true
    cp mbbsd testmbbsd
    ./testmbbsd 9000
    rm -f testmbbsd

install: $(PROG)
    install -d $(BBSHOME)/bin/
    install -c -m 755 $(PROG) $(BBSHOME)/bin/
    mv -f $(BBSHOME)/bin/mbbsd $(BBSHOME)/bin/mbbsd.`date '+%m%d%H'`
    ln -sv $(BBSHOME)/bin/mbbsd.`date '+%m%d%H'` $(BBSHOME)/bin/mbbsd

clean:
    rm -f $(OBJS) $(PROG)