-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
executable file
·42 lines (27 loc) · 861 Bytes
/
Makefile
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
#/******************************************/
#/* */
#/* Alexander Agdgomlishvili */
#/* */
#/* cdevelopment@mail.com */
#/* */
#/******************************************/
src = clist.c test.c
headers = clist.h
libObjects = clist.o
objects = $(libObjects) test.o
CC = gcc -g -W -O2 $(Cflags)
LIB = libclist.a
TARGET = test
all : LIBRARY EXECUTABLE
clean :
rm -rvf *.o *.log *.txt $(LIB) $(TARGET)
%.o : %.c
$(CC) -c -o $@ $<
LIBRARY : $(libObjects)
ar rcs $(LIB) $(libObjects)
EXECUTABLE : $(objects)
$(CC) $(Cflags) $(objects) -o $(TARGET) $(Lflags) $(libraries)
STRIP :
strip -s $(TARGET)
ECHO_STRING :
@echo "\n\n-------------------------------------------------------------\n\n"