1 # This file is part of mktorrent
2 # Copyright (C) 2007, 2009 Emil Renner Berthing
4 # mktorrent is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # mktorrent is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
18 .PHONY
: strip indent
clean install uninstall
21 $(CC
) $(CFLAGS
) $(DEFINES
) $(LDFLAGS
) $< -o
$@
24 $(CC
) $(CFLAGS
) $(OBJS
) -o
$(program
) $(LDFLAGS
) $(LIBS
)
26 allinone
: $(SRCS
) $(HEADERS
) prefix
27 $(CC
) $(CFLAGS
) $(DEFINES
) -DPRIoff
="\"`./prefix`d\"" -DVERSION
="\"$(version)\"" -DALLINONE main.c
-o
$(program
) $(LDFLAGS
) $(LIBS
)
33 indent
-kr
-i8
*.c
*.h
36 rm -f
$(program
) prefix *.o
*.c~
*.h~
39 $(INSTALL
) -d
$(DESTDIR
)$(PREFIX
)/bin
40 $(INSTALL
) -m755
$(program
) $(DESTDIR
)$(PREFIX
)/bin
/$(program
)
43 rm -f
$(DESTDIR
)$(PREFIX
)/bin
/$(program
)