-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
25 lines (18 loc) · 903 Bytes
/
Makefile
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
OBJS=obj/main.o obj/content_view.o obj/toolbar.o obj/navbar.o obj/treeview.o obj/sizebar.o obj/statusbar.o obj/file_node.o obj/file_actions.o obj/file_utils.o obj/input_dialog.o obj/resource.o
INCLUDE_DIR=-I.\include
EXECUTABLE=wfm.exe
WARNS=-Wall
LDFLAGS=-s -lcomctl32 -lgdi32 -lole32 -luuid -Wl,--subsystem,windows
RC=windres
CFLAGS=-O3 -std=c99 -DUNICODE -D_UNICODE -DCOBJMACROS -D_WIN32_IE=0x0500 -DWINVER=0x500 $(WARNS)
all: app
app: $(OBJS)
$(CC) -o $(EXECUTABLE) $(OBJS) $(LDFLAGS)
clean:
del obj\*.o $(EXECUTABLE)
obj:
mkdir obj
obj/%.o: src/%.c obj
$(CC) $(CFLAGS) $(INCLUDE_DIR) -c $< -o $@
obj/resource.o: res/resource.rc res/Application.manifest res/main.ico res/go.ico res/refresh.ico res/search.ico res/nav_arrow.ico res/up.ico res/copy.ico res/cut.ico res/paste.ico res/delete.ico res/new_folder.ico res/new_file.ico include/resource.h
$(RC) $(INCLUDE_DIR) -I.\res -i $< -o $@