forked from jbanes/rs97-commander
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.lf1000
52 lines (36 loc) · 1.79 KB
/
Makefile.lf1000
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
50
51
52
CC=${CROSS_COMPILE}g++
STRIP=${CROSS_COMPILE}strip
SDL_CFLAGS := $(shell ${CROSS_COMPILE}sdl-config --cflags)
SDL_LIBS := $(shell ${CROSS_COMPILE}sdl-config --libs)
CFLAGS = $(SDL_CFLAGS) -O3 -fomit-frame-pointer -ffast-math -funroll-loops -Wall -Wno-unknown-pragmas -Wno-format -DPLATFORM_LF1000
LFLAGS = $(SDL_LIBS) -Wall -lSDL -lSDL_image -lSDL_ttf -lfreetype -lpng16 -lpthread -lz -lm
TARGET = commander
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)