mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
80 lines
1.6 KiB
Makefile
80 lines
1.6 KiB
Makefile
CFLAGS_Release := -Werror \
|
|
-pthread \
|
|
-fno-exceptions \
|
|
-fno-strict-aliasing \
|
|
-Wall \
|
|
-Wno-unused-parameter \
|
|
-Wno-missing-field-initializers \
|
|
-fvisibility=hidden \
|
|
-pipe \
|
|
-fPIC \
|
|
-pthread \
|
|
-D_REENTRANT \
|
|
-I/usr/include/gtk-2.0 \
|
|
-I/usr/lib/gtk-2.0/include \
|
|
-I/usr/include/atk-1.0 \
|
|
-I/usr/include/cairo \
|
|
-I/usr/include/pango-1.0 \
|
|
-I/usr/include/gio-unix-2.0/ \
|
|
-I/usr/include/glib-2.0 \
|
|
-I/usr/lib/glib-2.0/include \
|
|
-I/usr/include/pixman-1 \
|
|
-I/usr/include/freetype2 \
|
|
-I/usr/include/directfb \
|
|
-I/usr/include/libpng12 \
|
|
-Icefclient \
|
|
-I../cef \
|
|
-O2 \
|
|
-fno-ident \
|
|
-fdata-sections \
|
|
-ffunction-sections
|
|
|
|
CFLAGS_CC_Release := -fno-rtti \
|
|
-fno-threadsafe-statics \
|
|
-fvisibility-inlines-hidden \
|
|
-Wsign-compare
|
|
|
|
LDFLAGS_Release := -pthread \
|
|
-Wl,-z,noexecstack \
|
|
-fPIC \
|
|
-Lobj/cef \
|
|
-Wl,-O1 \
|
|
-Wl,--as-needed \
|
|
-Wl,--gc-sections \
|
|
-Wl,-rpath=obj/cef \
|
|
-Wl,-rpath-link=obj/cef
|
|
|
|
LIBS := -lX11 \
|
|
-lgtk-x11-2.0 \
|
|
-lgdk-x11-2.0 \
|
|
-latk-1.0 \
|
|
-lgio-2.0 \
|
|
-lpangoft2-1.0 \
|
|
-lgdk_pixbuf-2.0 \
|
|
-lm \
|
|
-lpangocairo-1.0 \
|
|
-lcairo \
|
|
-lpango-1.0 \
|
|
-lfreetype \
|
|
-lfontconfig \
|
|
-lgobject-2.0 \
|
|
-lgmodule-2.0 \
|
|
-lgthread-2.0 \
|
|
-lrt \
|
|
-lglib-2.0 \
|
|
-lcef \
|
|
-lcef_dll_wrapper
|
|
|
|
SOURCES=atom.cpp cefclient.cpp string_util.cpp native_handler.cpp cefclient_switches.cpp client_handler.cpp client_handler_gtk.cpp
|
|
OBJECTS=$(SOURCES:.cpp=.o)
|
|
|
|
all:
|
|
g++ $(CFLAGS_Release) $(CFLAGS_CC_Release) -c $(SOURCES)
|
|
g++ -o atom $(OBJECTS) $(LDFLAGS_Release) $(LIBS)
|
|
cp ../Atom/Resources/chrome.pak .
|
|
mkdir -p locales/
|
|
cp ../Atom/Resources/en.lproj/locale.pak locales/en-US.pak
|
|
|
|
clean:
|
|
rm -rf *.o atom chrome.pak locales
|