blob: 52835f08f5633ad543b3f2246961d449b7a69104 (
plain)
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
|
PROGRAM = test
AK_OBJS = \
../AK/String.o \
../AK/StringImpl.o \
../AK/SimpleMalloc.o \
../AK/kmalloc.o
VFS_OBJS = \
AbstractScreen.o \
FrameBufferSDL.o \
EventLoop.o \
EventLoopSDL.o \
Object.o \
Widget.o \
RootWidget.o \
ColorSDL.o \
Painter.o \
Label.o \
Button.o \
TerminalWidget.o \
WindowManager.o \
Font.o \
Window.o \
ClockWidget.o \
CBitmap.o \
CheckBox.o \
ListBox.o \
TextBox.o \
MsgBox.o \
test.o
OBJS = $(AK_OBJS) $(VFS_OBJS)
CXXFLAGS = -std=c++17 -O0 -W -Wall -Wextra -Wconversion -I. -I.. -ggdb3 `sdl2-config --cflags` -DUSE_SDL
LDFLAGS = `sdl2-config --libs`
#test.o: BlockDevice.h FileBackedBlockDevice.h FileSystem.h Ext2FileSystem.h VirtualFileSystem.h FileHandle.h
all: $(PROGRAM)
.cpp.o:
$(CXX) $(CXXFLAGS) -o $@ -c $<
clean:
rm -f $(OBJS) $(PROGRAM)
$(PROGRAM): $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $(OBJS)
|