Subversion Repositories Kolibri OS

Rev

Rev 8198 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8198 Rev 8201
Line 1... Line 1...
1
# SDL build makefile_test
1
# SDL build makefile_test
2
# writed by maxcodehack
2
# writed by maxcodehack
Line -... Line 3...
-
 
3
 
-
 
4
# first export MENUETDEV
-
 
5
# second
-
 
6
# for build:
-
 
7
# make -f Makefile_test install
-
 
8
# for clean:
-
 
9
# make -f Makefile_test clean
-
 
10
 
-
 
11
# if you get many errors looks:
-
 
12
# " multiple definition of `inportb' "
-
 
13
# comment them in $(MENUETDEV)/include/inlines/pc.h
3
 
14
 
4
CC = kos32-gcc
15
CC = kos32-gcc
5
AR = kos32-ar
16
AR = kos32-ar
Line 6... Line 17...
6
LD = kos32-ld
17
LD = kos32-ld
Line 7... Line 18...
7
 
18
 
8
SDK_DIR:= $(abspath ../../..)
19
SDK_DIR:= $(abspath ../../..)
Line 9... Line -...
9
 
-
 
10
endian_OBJS = endian/SDL_endian.o
20
 
11
file_OBJS = file/SDL_rwops.o
21
endian_OBJS = endian/SDL_endian.o
Line 12... Line -...
12
 
-
 
13
# First save this:
-
 
14
hermes_OBJS = hermes/mmxp2_32.o hermes/mmx_main.o hermes/x86p_16.o \
-
 
15
        hermes/x86p_32.o hermes/x86_main.o
22
file_OBJS = file/SDL_rwops.o
16
        
23
 
17
# After only this
24
hermes_OBJS = hermes/mmxp2_32.o hermes/mmx_main.o hermes/x86p_16.o \
18
# hermes_OBJS = hermes/mmxp2_32.obj hermes/mmx_main.o hermes/x86p_16.obj \
25
        hermes/x86p_32.o hermes/x86_main.o
19
        hermes/x86p_32.obj hermes/x86_main.obj
26
 
Line 57... Line 64...
57
	mv -f libSDL.a $(SDK_DIR)/lib  
64
	mv -f libSDL.a $(SDK_DIR)/lib  
Line 58... Line 65...
58
 
65
 
59
libSDL.a: $(OBJS)
66
libSDL.a: $(OBJS)
Line 60... Line 67...
60
	$(AR) $(ARFLAGS) libSDL.a $(OBJS)
67
	$(AR) $(ARFLAGS) libSDL.a $(OBJS)
61
 
68
 
Line 62... Line 69...
62
%.obj : %.asm Makefile
69
%.o : %.asm Makefile
63
	nasm -f coff $< $
70
	nasm -f coff $< $
Line 64... Line 71...
64
 
71
 
65
%.o : %.c Makefile
72
%.o : %.c Makefile