doomemacs/modules/editor/file-templates/templates/makefile-gmake-mode/__cpp
Henrik Lissner 77e4cc4d58
💥 Remove :feature category
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:

- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces

More potential changes in the future:

- A new :term category for terminal emulation modules (eshell, term and
  vterm).
- A new :os category for modules dedicated to os-specific functionality.
  The :tools macos module would fit here, but so would modules for nixos
  and arch.
- A new :services category for web-service integration, like wakatime,
  twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00

46 lines
No EOL
1.1 KiB
Text

# -*- mode: snippet -*-
# contributor: Henrik Lissner
# --
CC = clang++
TAGS = ctags -e -x >TAGS
FLAGS = -std=c++11 -stdlib=libc++ -Iinclude -I/usr/local/include -L/usr/local/lib
CFLAGS = -pedantic -Wall -Wextra -ggdb3
LIBS = # ...
DEBUG_FLAGS = -O0 -D _DEBUG
RELEASE_FLAGS = -O2 -D NDEBUG -combile -fwhole-program
RELEASE_DIR = ./build/release
DEBUG_DIR = ./build/debug
TARGET = ${1:appname$(replace-regexp-in-string " " "" yas-text nil t)}
HEADERS = \$(shell echo include/*.h)
SOURCES = \$(shell echo src/*.cpp) \$(shell echo src/**/*.cpp)
OBJECTS = \$(SOURCES:.cpp=.o)
###
all: \$(TARGET)
debug: FLAGS += \$(DEBUG_FLAGS)
debug: \$(TARGET)
release: FLAGS += \$(RELEASE_FLAGS)
release: \$(TARGET)
profile: CFLAGS += -pg
profile: \$(TARGET)
\$(TARGET): \$(OBJECTS)
\$(CC) \$(FLAGS) \$(CFLAGS) -o \$(TARGET) \$(OBJECTS)
%.o: %.cpp
\$(CC) \$(FLAGS) \$(CFLAGS) -c -o \$@ \$<
tags: \$(SOURCES)
\$(CTAGS) \$(SOURCES)
clean:
-rm -f \$(OBJECTS) \$(TARGET)
.PHONY: all profile release debug clean