File: makefile

package info (click to toggle)
libsx 2.05-6
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,480 kB
  • ctags: 1,576
  • sloc: ansic: 8,525; makefile: 267
file content (33 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (8)
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
#
#
include ../libsx_defs

# the object files which the program depends on
OBJS       = main.o callbacks.o

all : test hello_world demo demo0

test: test.c
	$(CC) test.c -o test $(LIBS)

hello_world: hello_world.c
	$(CC) hello_world.c -o hello_world $(LIBS)

demo : $(OBJS)
	$(CC) -o demo $(OBJS) $(LIBS)

demo0 : main0.o
	$(CC) -o demo0  main0.o $(LIBS)


# main.o depends on main.c (of course) and main.h and callbacks.h
main.o : main.c main.h callbacks.h

callbacks.o : callbacks.c main.h


#
# A cleanup target.  Type `make clean' to remove all the junk.
#
clean :
	rm -f *.o *~ core test hello_world demo demo0