1
2
3#  --------  #
4#  makefile  #
5#  --------  #
6
7#  najitool makefile #
8
9#  this makefile is a part    #
10#  of najitool version 0.8.3  #
11
12#  from najitool version 0.2.0 and  #
13#  above najitool will use libnaji  #
14#  this version uses libnaji 0.6.3  #
15
16#  both najitool and libnaji  #
17#  are public domain and are  #
18#  made by the same author    #
19#  please read license.txt    #
20
21#  made by NECDET COKYAZICI   #
22
23
24cc = ${CC}
25ld = ${CC}
26clib = -lm
27cflags = ${CFLAGS} -I${LOCALBASE}/include
28output = najitool
29
30sources = najitool.c najihelp.c
31
32objects = najitool.o najihelp.o
33
34all:
35
36	$(cc) -c $(cflags) $(sources)
37	$(cc) $(cflags) $(objects) $(clib) ${LOCALBASE}/lib/libnaji.a -o $(output)
38
39clean:
40
41	touch $(objects)
42	touch $(output)
43	rm -f $(objects)
44	rm -f $(output)
45	touch najitool.exe
46	rm -f najitool.exe
47	rm ${LOCALBASE}/lib/libnaji.a
48	rm libnaji.h
49