Subversion Repositories HelenOS

Rev

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

Rev 3386 Rev 4153
Line 1... Line 1...
1
LIBC_PREFIX = ../../lib/libc
1
LIBC_PREFIX = ../../lib/libc
2
SOFTINT_PREFIX = ../../lib/softint
2
SOFTINT_PREFIX = ../../lib/softint
-
 
3
 
3
include $(LIBC_PREFIX)/Makefile.toolchain
4
include $(LIBC_PREFIX)/Makefile.toolchain
4
 
5
 
5
LIBS = $(LIBC_PREFIX)/libc.a
6
LIBS = $(LIBC_PREFIX)/libc.a
6
 
7
 
7
OUTPUT = tetris
8
OUTPUT = tetris
Line 16... Line 17...
16
 
17
 
17
depend:
18
depend:
18
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
19
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
19
 
20
 
20
$(OUTPUT): $(OBJECTS) $(LIBS)
21
$(OUTPUT): $(OBJECTS) $(LIBS)
21
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
22
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
22
 
23
 
23
clean:
24
clean:
24
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend *.o
25
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend *.o
25
 
26
 
26
disasm: $(OUTPUT).disasm
27
disasm: $(OUTPUT).disasm