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