fixed some style issues.
This commit is contained in:
18
makefile
Normal file
18
makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
.POSIX:
|
||||
|
||||
# Compiler and archiver definitions
|
||||
CC = cc
|
||||
AR = ar
|
||||
CFLAGS = -O2 -I./source_code
|
||||
|
||||
# Targets
|
||||
all: liblog.a
|
||||
|
||||
source_code/log.o: source_code/log.c source_code/log.h
|
||||
$(CC) $(CFLAGS) -c source_code/log.c -o source_code/log.o
|
||||
|
||||
liblog.a: source_code/log.o
|
||||
$(AR) -rc liblog.a source_code/log.o
|
||||
|
||||
clean:
|
||||
rm -f source_code/log.o liblog.a
|
||||
Reference in New Issue
Block a user