aboutsummaryrefslogtreecommitdiffhomepage
path: root/curses/jinx/Makefile
blob: 6811d4f7e4d033a0b784e778334347547445c1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright 2012-2018 Mitchell mitchell.att.foicica.com. See License.txt.

CC = gcc
CXX = g++
INCLUDEDIRS = -I ../../include -I ../../src -I ../../lexlib -I ../
CFLAGS = -DCURSES -DSCI_LEXER -D_XOPEN_SOURCE_EXTENDED -W -Wall $(INCLUDEDIRS) \
         -Wno-unused-parameter
CXXFLAGS = $(CFLAGS)

scintilla = ../../bin/scintilla_curses.a
lexers = $(wildcard ../Lex*.o)

all: jinx
jinx.o: jinx.c
	$(CC) $(CFLAGS) -c $<
jinx: jinx.o $(lexers) $(scintilla)
	$(CXX) -DCURSES $^ -o $@ -lncursesw
clean:
	rm -f jinx *.o