# # Makefile for APLINKS for FreeBSD, NAPLINKS # by Kenzi NOIKE HDRS = aplinks.h disp_ctr.h # # FreeBSD の場合、cc は gcc と等価 # CC = cc # # CC = gcc # CFLAGS = -DUNIX -Wall # LDFLAGS = -lm # TARG = aplinks # OBJEXT = .o # BASIC_OBJS = aplinks$(OBJEXT) disp_ctr$(OBJEXT) chk_mode$(OBJEXT) \ # set_mode$(OBJEXT) init_sct$(OBJEXT) port$(OBJEXT) free_sct$(OBJEXT) \ # title$(OBJEXT) epilogue$(OBJEXT) chk_bps$(OBJEXT) filelist$(OBJEXT) \ # takedir$(OBJEXT) chk_rec$(OBJEXT) get_wins$(OBJEXT) display$(OBJEXT) \ # usage$(OBJEXT) timestmp$(OBJEXT) set_outd$(OBJEXT) get_fsnb$(OBJEXT) \ # chk_wtim$(OBJEXT) bell$(OBJEXT) execaloc$(OBJEXT) chainchk$(OBJEXT) \ # chk_mdir$(OBJEXT) chk_timg$(OBJEXT) set_sdf$(OBJEXT) keyevent$(OBJEXT) \# # cm_dir$(OBJEXT) sig_anim$(OBJEXT) # OBJS = $(BASIC_OBJS) stricmp.o kbhit.o getch.o delay.o # EXEOUT = -o $(TARG) # LINKOBJS = $(OBJS) # # RS-232C 制御ルーチンソース # PORT_SRC = port.c # # ファイル削除コマンド # RM = rm # # for MS-DOS CC = tcc CFLAGS = -Yo -1 -ml -N # -Yo overlay control # -1 80186/286 Instruction # -ml large model # -N stack check LDFLAGS = $(CFLAGS) TARG = naplinks.exe OBJEXT = .obj BASIC_OBJS = aplinks$(OBJEXT) disp_ctr$(OBJEXT) chk_mode$(OBJEXT) \ set_mode$(OBJEXT) init_sct$(OBJEXT) port$(OBJEXT) free_sct$(OBJEXT) \ title$(OBJEXT) epilogue$(OBJEXT) chk_bps$(OBJEXT) filelist$(OBJEXT) \ takedir$(OBJEXT) chk_rec$(OBJEXT) get_wins$(OBJEXT) display$(OBJEXT) \ usage$(OBJEXT) timestmp$(OBJEXT) set_outd$(OBJEXT) get_fsnb$(OBJEXT) \ chk_wtim$(OBJEXT) bell$(OBJEXT) execaloc$(OBJEXT) chainchk$(OBJEXT) \ chk_mdir$(OBJEXT) chk_timg$(OBJEXT) set_sdf$(OBJEXT) keyevent$(OBJEXT) \ cm_dir$(OBJEXT) sig_anim$(OBJEXT) OBJS = $(BASIC_OBJS) EXEOUT = -e$(TARG) LINKOBJS = @naplinks.rsp # RS-232C 制御ルーチンソース PORT_SRC = port.dos # ファイル削除コマンド RM = del $(TARG): $(OBJS) $(CC) $(LDFLAGS) $(EXEOUT) $(LINKOBJS) # ベタで書いてしまいました(^^; # うぅ、作った順がわかってしまうぞよ(^^; aplinks$(OBJEXT): aplinks.c $(HDRS) $(CC) $(CFLAGS) -c aplinks.c disp_ctr$(OBJEXT): disp_ctr.c disp_ctr.h $(CC) $(CFLAGS) -c disp_ctr.c chk_mode$(OBJEXT): chk_mode.c $(HDRS) $(CC) $(CFLAGS) -c chk_mode.c set_mode$(OBJEXT): set_mode.c $(HDRS) $(CC) $(CFLAGS) -c set_mode.c init_sct$(OBJEXT): init_sct.c $(HDRS) $(CC) $(CFLAGS) -c init_sct.c port$(OBJEXT): $(PORT_SRC) $(HDRS) $(CC) $(CFLAGS) -c $(PORT_SRC) free_sct$(OBJEXT): free_sct.c $(HDRS) $(CC) $(CFLAGS) -c free_sct.c title$(OBJEXT): title.c $(HDRS) $(CC) $(CFLAGS) -c title.c epilogue$(OBJEXT): epilogue.c $(HDRS) $(CC) $(CFLAGS) -c epilogue.c chk_bps$(OBJEXT): chk_bps.c $(HDRS) $(CC) $(CFLAGS) -c chk_bps.c filelist$(OBJEXT): filelist.c $(HDRS) $(CC) $(CFLAGS) -c filelist.c takedir$(OBJEXT): takedir.c $(HDRS) $(CC) $(CFLAGS) -c takedir.c chk_rec$(OBJEXT): chk_rec.c $(HDRS) $(CC) $(CFLAGS) -c chk_rec.c get_wins$(OBJEXT): get_wins.c $(HDRS) $(CC) $(CFLAGS) -c get_wins.c display$(OBJEXT): display.c $(HDRS) $(CC) $(CFLAGS) -c display.c usage$(OBJEXT): usage.c $(HDRS) $(CC) $(CFLAGS) -c usage.c timestmp$(OBJEXT): timestmp.c $(HDRS) $(CC) $(CFLAGS) -c timestmp.c set_outd$(OBJEXT): set_outd.c $(HDRS) $(CC) $(CFLAGS) -c set_outd.c get_fsnb$(OBJEXT): get_fsnb.c $(HDRS) $(CC) $(CFLAGS) -c get_fsnb.c chk_wtim$(OBJEXT): chk_wtim.c $(HDRS) $(CC) $(CFLAGS) -c chk_wtim.c keyevent$(OBJEXT): keyevent.c $(HDRS) $(CC) $(CFLAGS) -c keyevent.c bell$(OBJEXT): bell.c $(HDRS) $(CC) $(CFLAGS) -c bell.c execaloc$(OBJEXT): execaloc.c $(HDRS) $(CC) $(CFLAGS) -c execaloc.c chainchk$(OBJEXT): chainchk.c $(HDRS) $(CC) $(CFLAGS) -c chainchk.c chk_mdir$(OBJEXT): chk_mdir.c $(HDRS) $(CC) $(CFLAGS) -c chk_mdir.c chk_timg$(OBJEXT): chk_timg.c $(HDRS) $(CC) $(CFLAGS) -c chk_timg.c set_sdf$(OBJEXT): set_sdf.c $(HDRS) $(CC) $(CFLAGS) -c set_sdf.c cm_dir$(OBJEXT): cm_dir.c $(HDRS) $(CC) $(CFLAGS) -c cm_dir.c sig_anim$(OBJEXT): sig_anim.c $(HDRS) $(CC) $(CFLAGS) -c sig_anim.c stricmp$(OBJEXT): stricmp.c $(HDRS) stricmp.h $(CC) $(CFLAGS) -c stricmp.c kbhit$(OBJEXT): kbhit.c $(HDRS) kbhit.h $(CC) $(CFLAGS) -c kbhit.c getch$(OBJEXT): getch.c $(HDRS) getch.h $(CC) $(CFLAGS) -c getch.c delay$(OBJEXT): delay.c $(HDRS) delay.h $(CC) $(CFLAGS) -c delay.c clean: $(RM) *$(OBJEXT) $(RM) $(TARG)