File: Makefile

package info (click to toggle)
argtable2 12-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,912 kB
  • sloc: sh: 9,083; ansic: 4,550; makefile: 106
file content (48 lines) | stat: -rw-r--r-- 1,575 bytes parent folder | download | duplicates (2)
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
#######################################################################
# This file is part of the argtable2 library.
# Copyright (C) 1998-2001,2003-2010 Stewart Heitmann
# sheitmann@users.sourceforge.net
#
# The argtable2 library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
# USA.
#######################################################################
#
#SHELL  = /bin/sh

#the default make rule for compiling C source code is
# xxx.o xxx.c:
#   $(CC) -c $(CFLAGS) -o xxx.o xxx.c


CC        = gcc
#add the -static switch to CFLAGS to force static linking if desired
CFLAGS    += -I/usr/local/include -g
LDLIBS    += -largtable2

TARGETS = uname rm mv echo ls myprog myprog_C89 multisyntax argcustom callbacks hasoptvalue

all: $(TARGETS)

argcustom: argcustom.o argxxx.o
	  $(CC) $(LDFLAGS) argcustom.o argxxx.o -o $@ $(LDLIBS)

clean:
	rm -f core core.* *.o *~ $(TARGETS)

distclean: clean
	rm -f Makefile