home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 3
/
FREEWARE.BIN
/
towns_os
/
fildlg33
/
makefile
< prev
next >
Wrap
Makefile
|
1980-01-02
|
2KB
|
79 lines
# makefile for FILEDLG
# Dec.18,1990(Tue) 01:11:07
#----- ファイル定義 -----#
NAME = filedlg
HDRS = filedlg.h button.h display.h mouse.h msdos.h oaklib.h romcpy.h setup.h txtentry.h
SRCS = main.c filedlg.c button.c display.c mouse.c msdos.c txtentry.c
ASMS = oaklib.asm romcpy.asm setup.asm
OBJ1 = oaklib.obj main.obj filedlg.obj button.obj display.obj mouse.obj msdos.obj txtentry.obj
OBJ2 = romcpy.obj
OBJS = $(OBJ1) $(OBJ2)
TARGET = main.exp
FPF = update.fpf readme.fpf
DOC = update.doc readme.doc
#----- 環境定義 -----#
LFLAGS = -exe $(TARGET) -tc -sym -pack -stack 130000 -callbufs 1 -realb end_real
LLIBS = -lib $(HCLIB)hce $(HCLIB)tbios
PRINT = lbpc
.SUFFIXES: .c .asm .fpf
.c.obj :
hc386 $< -off Floating_point -tmpi1 $(TMP)\tmpi1 -tmpi2 $(TMP)\tmpi2 -tmptp $(TMP)\tmptp
.asm.obj:
386asm $< -tc
.fpf.doc:
fplf -a doc -f $<
#===== : make executable files
$(TARGET) : $(OBJS)
echo $(LLIBS) > link.i
echo $(LFLAGS) >> link.i
echo $(OBJ1) >> link.i
echo $(OBJ2) >> link.i
386link @link.i
del link.i
main.obj : filedlg.h display.h mouse.h
filedlg.obj : filedlg.h button.h display.h mouse.h msdos.h oaklib.h txtentry.h
display.obj : display.h
mouse.obj : mouse.h romcpy.h
button.obj : button.h display.h mouse.h
msdos.obj : msdos.h
txtentry.obj : display.h msdos.h txtentry.h
#===== print : print files
print : $(HDRS) $(SRCS) $(ASMS) $(DOC) makefile
-$(PRINT) $? -d 1
@touch print
#===== doc : format document
doc : $(DOC)
#===== lharc : make archive file
lharc : $(HDRS) $(SRCS) $(ASMS) $(FPF) $(DOC) makefile
lharc u $(NAME) $(HDRS)
lharc u $(NAME) $(SRCS)
lharc u $(NAME) $(ASMS) $(FPF) $(DOC) makefile
lharc u $(NAME) $(TARGET)
#===== clean : delete temporary files
clean :
del *.bak
del *.obj
#===== help : help message
help :
@sed -n -e 's/^.=====[\t ]/ make /p' makefile