2014-06-12 14:43:21 +04:00
|
|
|
include $(MENUETDEV)/osrules.mak
|
|
|
|
ALIGN = --section-alignment=16 --file-alignment=16
|
|
|
|
|
|
|
|
.SUFFIXES: .asm;
|
|
|
|
|
|
|
|
$(OUTFILE): $(OBJS)
|
2014-10-08 20:14:52 +04:00
|
|
|
$(MLD) -o $(OUTFILE) $(OBJS) $(LIBS) $(LDFLAGS) -n -Map $(OUTFILE).map $(ALIGN) -lc
|
2014-06-12 14:43:21 +04:00
|
|
|
objcopy $(OUTFILE) -O binary
|
|
|
|
|
|
|
|
.c.o:
|
2014-10-08 20:14:52 +04:00
|
|
|
$(MGCC) $*.c -o $*.o $(CFLAGS)
|
2014-06-12 14:43:21 +04:00
|
|
|
|
|
|
|
.cpp.o:
|
2014-10-08 20:14:52 +04:00
|
|
|
$(MGPP) $*.cpp -o $*.o $(CPPFLAGS)
|
2014-06-12 14:43:21 +04:00
|
|
|
|
|
|
|
.cc.o:
|
2014-10-08 20:14:52 +04:00
|
|
|
$(MGPP) $*.cc -o $*.o $(CPPFLAGS)
|
2014-06-12 14:43:21 +04:00
|
|
|
|
|
|
|
.asm.o:
|
|
|
|
nasm $*.asm -f $(ASMFMT) -o $*.o
|
|
|
|
|
|
|
|
.s.o:
|
2014-10-08 20:14:52 +04:00
|
|
|
kos32-cpp $*.s -o $*.asm -nostdinc -I$(MENUETDEV)/include
|
|
|
|
kos32-as $*.asm -o $*.o
|
2014-06-12 14:43:21 +04:00
|
|
|
$(RM) $*.asm
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) $(OBJS) $(OUTFILE) $(OUTFILE).map
|
|
|
|
|
|
|
|
rebuild: clean $(OUTFILE)
|