blob: ec3533fc0891cc19ad58c895b59f0b5b1a15f19c (
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
|
PROGRAM = test
AK_OBJS = \
../AK/String.o \
../AK/StringImpl.o \
../AK/SimpleMalloc.o \
../AK/kmalloc.o
VFS_OBJS = \
AbstractScreen.o \
FrameBuffer.o \
EventLoop.o \
Rect.o \
Object.o \
Widget.o \
Color.o \
Painter.o \
Label.o \
Button.o \
WindowManager.o \
Font.o \
Window.o \
ClockWidget.o \
CharacterBitmap.o \
CheckBox.o \
ListBox.o \
TextBox.o \
MsgBox.o \
GraphicsBitmap.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) -o $@ $(OBJS) $(LDFLAGS)
|