TARGET = helloc4 STACKSIZE = 4k MALLOCSIZE = 1k MMAREA = 0 OBJS = $(TARGET).obj # 以上5つはソースごとに書き換える # OBJSを書き換えると分割コンパイル対応 TOOLPATH = INCPATH = $(TOOLPATH). RULEFILE = $(TOOLPATH)guigui00.rul DLLRULE = $(TOOLPATH)dllrule0.rul MAKE = $(TOOLPATH)make -r SJISCONV = $(TOOLPATH)sjisconv -s CC1 = $(TOOLPATH)cc1 -I$(INCPATH) -Os -quiet GAS2NASK = $(TOOLPATH)gas2nask -a NASK = $(TOOLPATH)nask OBJ2BIM = $(TOOLPATH)obj2bim3 BIM2BIN = $(TOOLPATH)bim2bin3 CPP0 = $(TOOLPATH)cpp0 -P -I$(INCPATH) ASKA = $(TOOLPATH)aska NASKCNV = $(TOOLPATH)naskcnv0 -l -s -w GOLIB = $(TOOLPATH)golib00w DELE = del # 以上の項目はあなたのディレクトリ構成にあわせて書き換える ALL : $(MAKE) $(TARGET).bin %.ca : %.c Makefile $(SJISCONV) $*.c $*.ca %.gas : %.ca Makefile $(CC1) -o $*.gas $*.ca %.nas : %.gas Makefile $(GAS2NASK) $*.gas $*.nas %.obj : %.nas Makefile $(NASK) $*.nas $*.obj %.ias : %.ask Makefile $(CPP0) -o $*.ias $*.ask %.3as : %.ias Makefile $(ASKA) $*.ias $*.3as %.nas : %.3as Makefile $(NASKCNV) $*.3as $*.nas %.lst : %.nas Makefile $(NASK) $*.nas $*.obj $*.lst $(TARGET).bim : $(OBJS) Makefile $(OBJ2BIM) @$(RULEFILE) out:$(TARGET).bim stack:$(STACKSIZE) map:$(TARGET).map $(OBJS) %.bin : %.bim Makefile $(BIM2BIN) in:$*.bim out:$*.org malloc:$(MALLOCSIZE) mmarea:$(MMAREA) $(BIM2BIN) -osacmp -tek0 in:$*.org out:$*.bin $(TARGET).lib : $(OBJS) Makefile $(GOLIB) out:$(TARGET).lib $(OBJS) $(TARGET).dll : $(OBJS) Makefile $(OBJ2BIM) @$(DLLRULE) out:$(TARGET).bim map:$(TARGET).map $(OBJS) $(BIM2BIN) -osacmp -tek0 in:$(TARGET).bim out:$(TARGET).dll clean : $(DELE) *.obj $(DELE) $(TARGET).bim $(DELE) $(TARGET).map $(DELE) $(TARGET).org
SJISCONV = cp
CC1 = $(TOOLPATH)gocc1 -I$(INCPATH) -Os -quiet
CPP0 = $(TOOLPATH)gocpp0 -P -I$(INCPATH)
GOLIB = $(TOOLPATH)golib00
DELE = rm -f
TARGET = helloc4 STACKSIZE = 4k MALLOCSIZE = 1k MMAREA = 0 OBJS = $(TARGET).obj # 以上5つはソースごとに書き換える # OBJSを書き換えると分割コンパイル対応
INCPATH = . RULEFILE = guigui00.rul SJISCONV = ln CC1 = gocc1 GAS2NASK = gas2nask NASK = nask OBJ2BIM = obj2bim3 BIM2BIN = bim2bin3 MAKE = make DEL = rm -f # 以上の項目はあなたのディレクトリ構成にあわせて書き換える ALL : $(MAKE) $(TARGET).bin %.ca : %.c Makefile $(SJISCONV) -s $*.c $*.ca %.gas : %.ca Makefile $(CC1) -I$(INCPATH) -Os -quiet -o $*.gas $*.ca %.nas : %.gas Makefile $(GAS2NASK) -a $*.gas $*.nas %.obj : %.nas Makefile $(NASK) $*.nas $*.obj $(TARGET).bim : $(OBJS) Makefile $(OBJ2BIM) @$(RULEFILE) out:$(TARGET).bim stack:$(STACKSIZE) map:$(TARGET).map $(OBJS) %.bin : %.bim Makefile $(BIM2BIN) in:$*.bim out:$*.org malloc:$(MALLOCSIZE) mmarea:$(MMAREA) $(BIM2BIN) in:$*.org out:$*.bin -osacmp -tek0 clean : $(DEL) $(TARGET).map $(DEL) $(TARGET).org $(DEL) $(TARGET).bin
う��ん・・・いまいち。なんか無理に書くほどのことじゃなかったような・・・・(^^;)
%.gas : %.ca Makefile $(CC1) -o $*.gas $*.ca
(This host) = http://osask.net