forked from jbanes/rs97-commander
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.dingoo
executable file
·49 lines (35 loc) · 1.79 KB
/
makefile.dingoo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
CHAINPREFIX=/opt/mipsel-linux-uclibc/usr
CC=mipsel-linux-g++
STRIP=mipsel-linux-strip
CFLAGS=-I$(CHAINPREFIX)/include `$(CHAINPREFIX)/bin/sdl-config --cflags` -O3 -msoft-float -fomit-frame-pointer -ffast-math -funroll-loops -Wall -Wno-unknown-pragmas -Wno-format -DPLATFORM_DINGOO
LFLAGS=-L$(CHAINPREFIX)/lib `$(CHAINPREFIX)/bin/sdl-config --libs` -Wall -lSDL -lSDL_image -lSDL_ttf
TARGET=../build/DinguxCommander.dge
OBJS=main.o sdlutils.o resourceManager.o fileLister.o commander.o panel.o dialog.o window.o fileutils.o viewer.o keyboard.o
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LFLAGS) -o $(TARGET) $(OBJS)
$(STRIP) $(TARGET)
main.o: main.cpp def.h resourceManager.h commander.h sdlutils.h
$(CC) $(CFLAGS) -c main.cpp
sdlutils.o: sdlutils.h sdlutils.cpp def.h window.h resourceManager.h
$(CC) $(CFLAGS) -c sdlutils.cpp
resourceManager.o: resourceManager.h resourceManager.cpp def.h sdlutils.h def.h
$(CC) $(CFLAGS) -c resourceManager.cpp
fileLister.o: fileLister.h fileLister.cpp
$(CC) $(CFLAGS) -c fileLister.cpp
commander.o: commander.h commander.cpp panel.h resourceManager.h sdlutils.h def.h window.h dialog.h fileutils.h viewer.h keyboard.h
$(CC) $(CFLAGS) -c commander.cpp
panel.o: panel.h panel.cpp fileLister.h def.h resourceManager.h sdlutils.h fileutils.h
$(CC) $(CFLAGS) -c panel.cpp
dialog.o: dialog.h dialog.cpp sdlutils.h resourceManager.h def.h window.h
$(CC) $(CFLAGS) -c dialog.cpp
window.o: window.h window.cpp def.h
$(CC) $(CFLAGS) -c window.cpp
fileutils.o: fileutils.h fileutils.cpp def.h sdlutils.h
$(CC) $(CFLAGS) -c fileutils.cpp
viewer.o: viewer.h viewer.cpp window.h def.h resourceManager.h sdlutils.h
$(CC) $(CFLAGS) -c viewer.cpp
keyboard.o: keyboard.h keyboard.cpp window.h def.h resourceManager.h sdlutils.h
$(CC) $(CFLAGS) -c keyboard.cpp
clean:
rm -f $(TARGET) $(OBJS)