forked from alexd/metapad
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.custom.linux.AMD64
More file actions
executable file
·66 lines (49 loc) · 2.13 KB
/
Makefile.custom.linux.AMD64
File metadata and controls
executable file
·66 lines (49 loc) · 2.13 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#Project: metapad
#Compiler: Default GCC compiler
#Compiler Type: MingW 3
#Makefile created by wxDev-C++ 7.2.0.2 on 29-11-09 05:10
#RICHEDIT = USE_RICH_EDIT
RICHEDIT = NO_RICH_EDIT
WXLIBNAME = wxmsw28
CC = x86_64-w64-mingw32-gcc --define $(RICHEDIT)
WINDRES = "x86_64-w64-mingw32-windres" --define $(RICHEDIT)
OBJ = metapad.o metapad_private.res cdecode.o cencode.o language_plugin.o external_viewers.o settings_save.o settings_load.o file_save.o
LINKOBJ = "metapad.o" metapad_private.res cdecode.o cencode.o language_plugin.o external_viewers.o settings_save.o settings_load.o file_save.o
LIBS = -lcomctl32 -mwindows
INCS =
CXXINCS =
RCINCS =
BIN = metapad_64.exe
#DEFINES = -D__GNUWIN32__ -D_DEBUG -D_MBCS -DWIN32 -D_WINDOWS
DEFINES = -D__GNUWIN32__ -DNDEBUG -D_MBCS -DWIN32 -D_WINDOWS
CFLAGS = $(INCS) $(DEFINES) -Wall -Wextra -g -pg -c
#CFLAGS = $(INCS) $(DEFINES) -c
#CFLAGS = $(INCS) $(DEFINES) -c -O2
GPROF = x86_64-w64-mingw32-gprof
RM = rm -f
LINK = x86_64-w64-mingw32-g++ -pg
.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after
clean: clean-custom
$(RM) $(LINKOBJ) "$(BIN)"
$(BIN): $(OBJ)
$(LINK) $(LINKOBJ) -o "$(BIN)" $(LIBS)
# strip $(BIN)
metapad.o: $(GLOBALDEPS) metapad.c include/resource.h
$(CC) -c metapad.c -o metapad.o $(CFLAGS)
metapad_private.res: metapad_private.res metapad.rc
$(WINDRES) --input-format=rc -o metapad_private.res $(RCINCS) metapad.rc -O coff
cencode.o: $(GLOBALDEPS) cencode.c
$(CC) -c cencode.c -o cencode.o $(CFLAGS)
cdecode.o: $(GLOBALDEPS) cdecode.c
$(CC) -c cdecode.c -o cdecode.o $(CFLAGS)
language_plugin.o: $(GLOBALDEPS) language_plugin.c
$(CC) -c language_plugin.c -o language_plugin.o $(CFLAGS)
external_viewers.o: $(GLOBALDEPS) external_viewers.c
$(CC) -c external_viewers.c -o external_viewers.o $(CFLAGS)
settings_save.o: $(GLOBALDEPS) settings_save.c
$(CC) -c settings_save.c -o settings_save.o $(CFLAGS)
settings_load.o: $(GLOBALDEPS) settings_load.c
$(CC) -c settings_load.c -o settings_load.o $(CFLAGS)
file_save.o: $(GLOBALDEPS) file_save.c
$(CC) -c file_save.c -o file_save.o $(CFLAGS)