forked from KolibriOS/kolibrios
35 lines
691 B
Plaintext
35 lines
691 B
Plaintext
|
include $(MENUETDEV)/osrules.mak
|
||
|
ifdef ON_WINDOWS
|
||
|
ALIGN = --section-alignment=16 --file-alignment=16
|
||
|
else
|
||
|
ALIGN =
|
||
|
endif
|
||
|
|
||
|
.SUFFIXES: .asm;
|
||
|
|
||
|
$(OUTFILE): $(OBJS)
|
||
|
$(MLD) $(OUTFILE) $(OBJS) $(LIBS) $(LDFLAGS) -n -Map $(OUTFILE).map $(LD32OPT)$(ALIGN)
|
||
|
objcopy $(OUTFILE) -O binary
|
||
|
|
||
|
.c.o:
|
||
|
$(MGCC) $*.c $*.o $(CFLAGS) $(GCC32OPT)
|
||
|
|
||
|
.cpp.o:
|
||
|
$(MGPP) $*.cpp $*.o $(CPPFLAGS) $(GCC32OPT)
|
||
|
|
||
|
.cc.o:
|
||
|
$(MGPP) $*.cc $*.o $(CPPFLAGS) $(GCC32OPT)
|
||
|
|
||
|
.asm.o:
|
||
|
nasm $*.asm -f $(ASMFMT) -o $*.o
|
||
|
|
||
|
.s.o:
|
||
|
cpp $*.s -o $*.asm -nostdinc -I$(MENUETDEV)/include
|
||
|
as $*.asm $(AS32OPT) -o $*.o
|
||
|
$(RM) $*.asm
|
||
|
|
||
|
clean:
|
||
|
$(RM) $(OBJS) $(OUTFILE) $(OUTFILE).map
|
||
|
|
||
|
rebuild: clean $(OUTFILE)
|