?? dj.mak
字號:
.SUFFIXES: .asm
# defines
MAKEFILE=dj.mak
MAKEDEP=$(MAKEFILE)
INCDIR =../inc
NASM =nasm -f coff -dUNDERBARS=1 -i$(INCDIR)/
CC =gcc -g -Wall -W -O2 -nostdinc -fno-builtin -I$(INCDIR)
STDIO =stdio/doprintf.o
STRING =string/memsetw.o string/memcpy.o string/strlen.o
X86 =x86/inportb.o x86/outportb.o x86/disable.o x86/enable.o
CTYPE =ctype/ctype.o
SETJMP =setjmp/setjmp.o setjmp/longjmp.o
OBJS =$(STDIO) $(STRING) $(X86) $(CTYPE) $(SETJMP)
# targets
all: libc.a
clean:
del libc.a
# deltree /y $(OBJS) # command line is too long. Got 'sed'?
dir /s /b *.o | sed -e s/"^"/"del "/g >delobj.bat
delobj.bat
del delobj.bat
# implicit rules
.asm.o:
$(NASM) -o$@ $<
.c.o:
$(CC) -c -o$@ $<
# dependencies
stdio/doprintf.o: stdio/doprintf.c $(MAKEDEP)
string/memsetw.o: string/memsetw.c $(MAKEDEP)
string/memcpy.o: string/memcpy.c $(MAKEDEP)
string/strlen.o: string/strlen.c $(MAKEDEP)
x86/inportb.o: x86/inportb.c $(MAKEDEP)
x86/outportb.o: x86/outportb.c $(MAKEDEP)
x86/disable.o: x86/disable.c $(MAKEDEP)
x86/enable.o: x86/enable.c $(MAKEDEP)
ctype/ctype.o: ctype/ctype.c $(MAKEDEP)
setjmp/setjmp.o: setjmp/setjmp.asm $(MAKEDEP)
setjmp/longjmp.o: setjmp/longjmp.c $(MAKEDEP)
# explicit rules
libc.a: $(OBJS) $(MAKEDEP)
ar rcs libc.a $(OBJS)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -