9757da66f4
git-svn-id: svn://kolibrios.org@5145 a494cfbc-eb01-0410-851d-a64ba20cac60
31 lines
622 B
Plaintext
31 lines
622 B
Plaintext
include $(MENUETDEV)/osrules.mak
|
|
ALIGN = --section-alignment=16 --file-alignment=16
|
|
|
|
.SUFFIXES: .asm;
|
|
|
|
$(OUTFILE): $(OBJS)
|
|
$(MLD) -o $(OUTFILE) $(OBJS) $(LIBS) $(LDFLAGS) -n -Map $(OUTFILE).map $(ALIGN) -lc
|
|
objcopy $(OUTFILE) -O binary
|
|
|
|
.c.o:
|
|
$(MGCC) $*.c -o $*.o $(CFLAGS)
|
|
|
|
.cpp.o:
|
|
$(MGPP) $*.cpp -o $*.o $(CPPFLAGS)
|
|
|
|
.cc.o:
|
|
$(MGPP) $*.cc -o $*.o $(CPPFLAGS)
|
|
|
|
.asm.o:
|
|
nasm $*.asm -f $(ASMFMT) -o $*.o
|
|
|
|
.s.o:
|
|
kos32-cpp $*.s -o $*.asm -nostdinc -I$(MENUETDEV)/include
|
|
kos32-as $*.asm -o $*.o
|
|
$(RM) $*.asm
|
|
|
|
clean:
|
|
$(RM) $(OBJS) $(OUTFILE) $(OUTFILE).map
|
|
|
|
rebuild: clean $(OUTFILE)
|