|
|
@ -30,7 +30,7 @@ CCFLAGS = $(CPPFLAGS) $(CFLAGS) |
|
|
|
OBJCFLAGS += $(EOBJCFLAGS)
|
|
|
|
OBJCFLAGS += $(EOBJCFLAGS)
|
|
|
|
OBJCCFLAGS = $(CPPFLAGS) $(CFLAGS) $(OBJCFLAGS)
|
|
|
|
OBJCCFLAGS = $(CPPFLAGS) $(CFLAGS) $(OBJCFLAGS)
|
|
|
|
ASFLAGS := $(CPPFLAGS) $(ASFLAGS)
|
|
|
|
ASFLAGS := $(CPPFLAGS) $(ASFLAGS)
|
|
|
|
X86ASMFLAGS += $(IFLAGS:%=%/) -Pconfig.asm
|
|
|
|
X86ASMFLAGS += $(IFLAGS:%=%/) -I$(<D)/ -Pconfig.asm
|
|
|
|
HOSTCCFLAGS = $(IFLAGS) $(HOSTCPPFLAGS) $(HOSTCFLAGS)
|
|
|
|
HOSTCCFLAGS = $(IFLAGS) $(HOSTCPPFLAGS) $(HOSTCFLAGS)
|
|
|
|
LDFLAGS := $(ALLFFLIBS:%=$(LD_PATH)lib%) $(LDFLAGS)
|
|
|
|
LDFLAGS := $(ALLFFLIBS:%=$(LD_PATH)lib%) $(LDFLAGS)
|
|
|
|
|
|
|
|
|
|
|
@ -42,6 +42,7 @@ endef |
|
|
|
COMPILE_C = $(call COMPILE,CC)
|
|
|
|
COMPILE_C = $(call COMPILE,CC)
|
|
|
|
COMPILE_S = $(call COMPILE,AS)
|
|
|
|
COMPILE_S = $(call COMPILE,AS)
|
|
|
|
COMPILE_M = $(call COMPILE,OBJCC)
|
|
|
|
COMPILE_M = $(call COMPILE,OBJCC)
|
|
|
|
|
|
|
|
COMPILE_X86ASM = $(call COMPILE,X86ASM)
|
|
|
|
COMPILE_HOSTC = $(call COMPILE,HOSTCC)
|
|
|
|
COMPILE_HOSTC = $(call COMPILE,HOSTCC)
|
|
|
|
|
|
|
|
|
|
|
|
%.o: %.c |
|
|
|
%.o: %.c |
|
|
@ -57,8 +58,7 @@ COMPILE_HOSTC = $(call COMPILE,HOSTCC) |
|
|
|
$(COMPILE_HOSTC)
|
|
|
|
$(COMPILE_HOSTC)
|
|
|
|
|
|
|
|
|
|
|
|
%.o: %.asm |
|
|
|
%.o: %.asm |
|
|
|
$(DEPX86ASM) $(X86ASMFLAGS) -I $(<D)/ -M -o $@ $< > $(@:.o=.d)
|
|
|
|
$(COMPILE_X86ASM)
|
|
|
|
$(X86ASM) $(X86ASMFLAGS) -I $(<D)/ -o $@ $<
|
|
|
|
|
|
|
|
-$(STRIP) $(STRIPFLAGS) $@
|
|
|
|
-$(STRIP) $(STRIPFLAGS) $@
|
|
|
|
|
|
|
|
|
|
|
|
%.i: %.c |
|
|
|
%.i: %.c |
|
|
|