home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 3
/
FREEWARE.BIN
/
towns_os
/
fildlg22
/
makefile
< prev
next >
Wrap
Makefile
|
1980-01-02
|
2KB
|
72 lines
# makefile for FILEDLG
# Apr.05,1990(Thu) 09:34:20
#----- ファイル定義 -----#
NAME = filedlg
HDRS = filedlg.h button.h display.h mouse.h msdos.h romcpy.h setup.h
SRCS = main.c filedlg.c button.c display.c mouse.c msdos.c
ASMS = romcpy.asm setup.asm
OBJ1 = main.obj filedlg.obj button.obj display.obj mouse.obj msdos.obj
OBJ2 = romcpy.obj setup.obj
OBJS = $(OBJ1) $(OBJ2)
TARGET = main.exp
FPF = update.fpf
DOC = update.doc
#----- 環境定義 -----#
LFLAGS = -tc -sym -pack -stack 130000 -callbufs 1
LLIBS = -lib $(HCLIB)hce $(HCLIB)tbios
PRINT = lbpc
.SUFFIXES: .c .asm .fpf
.c.obj :
hc386p $<
.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 setup.h
display.obj : display.h
mouse.obj : mouse.h romcpy.h
button.obj : button.h display.h mouse.h
msdos.obj : msdos.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)
#===== help : help message
help :
@sed -n -e 's/^.=====[\t ]/ make /p' makefile