30 lines
630 B
Makefile
30 lines
630 B
Makefile
# Makefile for the Plugable EDitor #
|
|
|
|
CC=gcc
|
|
FLAGS=-Wall -pedantic -ldl
|
|
EXE=bin/ped
|
|
|
|
all: install
|
|
$(CC) src/tty.c -o tty.o -c
|
|
$(CC) src/utils.c -o utils.o -c
|
|
$(CC) src/commands.c -o commands.o -c
|
|
$(CC) src/editor.c -o editor.o -c
|
|
$(CC) src/session.c -o session.o -c
|
|
$(CC) src/plugins.c -o plugins.o -c
|
|
$(CC) $(FLAGS) -o $(EXE) src/ped.c tty.o utils.o commands.o editor.o session.o plugins.o
|
|
gcc src/plugins/zifty.c -o zifty.o -shared -fPIC
|
|
gcc src/plugins/reload.c -o reload.o -shared -fPIC
|
|
|
|
test: clean all
|
|
./bin/ped test
|
|
rm -rf test
|
|
|
|
install:
|
|
mkdir -p obj
|
|
mkdir -p bin
|
|
|
|
clean:
|
|
rm -rf test
|
|
rm -rf bin
|
|
rm -rf obj
|