-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
55 lines (43 loc) · 1.16 KB
/
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
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
#
# File Name: makefile
# Author: Seree Rakwong
# Date: 28-NOV-2017
#
TARGET = tui_test_linux
CC = gcc
CFLAGS = -g -Wall -m32
LFLAGS = -lm -lcurses -lpthread
.PHONY: default all clean
default: $(TARGET)
all: default
BIN_DIR = ./bin
SRC_DIR = ./src
INC_DIR = ./include
SOURCES = $(SRC_DIR)/tui_node.c \
$(SRC_DIR)/tui_list.c \
$(SRC_DIR)/tui_stack.c \
$(SRC_DIR)/tui_queue.c \
$(SRC_DIR)/tui_tree.c \
$(SRC_DIR)/tui_dic.c \
$(SRC_DIR)/tui_xcnf.c \
$(SRC_DIR)/tuithrd.c \
$(SRC_DIR)/tui.c \
$(SRC_DIR)/tuidc.c \
$(SRC_DIR)/tuistc.c \
$(SRC_DIR)/tuiedt.c \
$(SRC_DIR)/tuibtn.c \
$(SRC_DIR)/tuilb.c \
$(SRC_DIR)/tuilctl.c \
$(SRC_DIR)/tuitctl.c \
$(SRC_DIR)/tuifrmwnd.c \
$(SRC_DIR)/tuiddx.c \
$(SRC_DIR)/tui_test.c
OBJECTS = $(SOURCES:.c=.o)
INCLUDES = -I$(INC_DIR)
DEFINES = -D__UNIX__ -D__LINUX__ -D__USE_CURSES__
%.o: %.c
$(CC) $(CFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
$(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) $(LFLAGS) -o $@ $^
clean:
rm -f src/*.o $(TARGET)*