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