Subversion Repositories HelenOS

Rev

Rev 3424 | Rev 3675 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3424 Rev 3425
Line 48... Line 48...
48
ifneq ($(ARCH), ia64)
48
ifneq ($(ARCH), ia64)
49
	SOURCES += fb.c \
49
	SOURCES += fb.c \
50
		font-8x16.c
50
		font-8x16.c
51
	CFLAGS += -DFB_ENABLED
51
	CFLAGS += -DFB_ENABLED
52
endif
52
endif
53
 
-
 
54
ifeq ($(ARCH), ia32)
53
ifeq ($(ARCH), ia32)
55
	SOURCES += ega.c
54
	SOURCES += ega.c
56
	CFLAGS += -DEGA_ENABLED
55
	CFLAGS += -DEGA_ENABLED
57
endif
56
endif
58
ifeq ($(ARCH), amd64)
57
ifeq ($(ARCH), amd64)
59
	SOURCES += ega.c
58
	SOURCES += ega.c
60
	CFLAGS += -DEGA_ENABLED
59
	CFLAGS += -DEGA_ENABLED
61
endif
60
endif
62
ifeq ($(ARCH), mips32)
61
ifeq ($(ARCH), mips32)
-
 
62
	SOURCES += msim.c
63
	CFLAGS += -DFB_INVERT_ENDIAN
63
	CFLAGS += -DMSIM_ENABLED -DFB_INVERT_ENDIAN
64
endif
64
endif
65
 
65
 
66
CFLAGS += -D$(ARCH)
66
CFLAGS += -D$(ARCH)
67
 
67
 
68
 
68
 
69
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
69
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
70
 
70
 
71
.PHONY: all clean depend disasm
71
.PHONY: all clean depend disasm
72
 
72
 
73
all: $(OUTPUT) disasm
73
all: $(OUTPUT) $(OUTPUT).disasm
74
 
74
 
75
-include Makefile.depend
75
-include Makefile.depend
76
 
76
 
77
clean:
77
clean:
78
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
78
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
Line 81... Line 81...
81
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
81
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
82
 
82
 
83
$(OUTPUT): $(OBJECTS) $(LIBS)
83
$(OUTPUT): $(OBJECTS) $(LIBS)
84
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
84
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
85
 
85
 
86
disasm:
86
disasm: $(OUTPUT).disasm
-
 
87
 
-
 
88
$(OUTPUT).disasm: $(OUTPUT)
87
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
89
	$(OBJDUMP) -d $< >$@
88
 
90
 
89
%.o: %.S
91
%.o: %.S
90
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
92
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
91
 
93
 
92
%.o: %.s
94
%.o: %.s