2014-06-12 14:43:21 +04:00
|
|
|
include $(MENUETDEV)/osrules.mak
|
|
|
|
|
|
|
|
.SUFFIXES: .asm;
|
|
|
|
|
|
|
|
$(OUTFILE): $(OBJS)
|
2014-10-08 20:14:52 +04:00
|
|
|
kos32-ar rcs $(OUTFILE) $(OBJS)
|
2014-06-12 14:43:21 +04:00
|
|
|
|
|
|
|
.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)
|
|
|
|
|
|
|
|
rebuild: clean $(OUTFILE)
|