File: Makefile

package info (click to toggle)
uclmmbase 1.2.16-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,632 kB
  • ctags: 1,277
  • sloc: ansic: 11,847; sh: 2,589; makefile: 250
file content (37 lines) | stat: -rw-r--r-- 751 bytes parent folder | download | duplicates (3)
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
# Generated automatically from Makefile.in by configure.
#
# Makefile for the SDP example.
# This probably requires GNU make.
#

# Location of includes and library
CSRC   = ../../src

# Library name
LNAME  = uclmmbase

DEFS   = -DHAVE_CONFIG_H
CFLAGS = -g -W -Wall -Wwrite-strings -Wbad-function-cast -Wmissing-prototypes -Wcast-qual -Wmissing-declarations -Werror $(DEFS) -I$(CSRC)
LIBS   = -lnsl -lsocket -L$(CSRC) -l$(LNAME)
CC     = gcc

TARGET = sdpdemo
OBJS   = sdpdemo.o
SRCS   = $(OBJS:%.o=%.c)

all: $(TARGET)

sdpdemo: $(OBJS) $(CSRC)/lib$(LNAME).a
	 $(CC) $(CFLAGS) -o $@ $(@).o $(LIBS)

.c.o:
	$(CC) $(CFLAGS) $(INC) -c $<

$(CSRC)/lib$(LNAME).a:
	cd $(CSRC) && $(MAKE)

clean:
	-rm -f $(OBJS) $(TARGET)

distclean: clean
	-rm -f Makefile