forked from misc0110/PTEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 687 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 687 Bytes
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
all: pteditor ptedit.o example header tests
header: module/pteditor.c module/pteditor.h ptedit.c ptedit.h
echo "#pragma once" > ptedit_header.h
cat module/pteditor.h ptedit.h ptedit.c | \
sed -e 's/#include ".*"//g' -e "1i // Warning: this file was generated by make. DO NOT EDIT!" | sed 's/#define ptedit_fnc/#define ptedit_fnc static/g' >> ptedit_header.h
pteditor: module/pteditor.c
cd module && make
example: example.c header
gcc -Wall -Wextra example.c -g -o example
demos: header pteditor
cd demos && make
tests: header pteditor
cd test && make
deb:
dpkg-buildpackage
clean:
cd module && make clean
cd demos && make clean
cd test && make clean
rm -f example *.o