-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 700 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 700 Bytes
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
CC = cc
CFLAGS = -g -Iinclude -Wall -std=c99 -pedantic
libswftag_objs = \
lib/intermediate/cf_implementations.o \
lib/intermediate/check_functions.o \
lib/intermediate/decompression.o \
lib/intermediate/primary.o \
lib/intermediate/swfmath.o \
all: lib/libswftag.a lib/optional/error.o
lib/libswftag.a: $(libswftag_objs)
ar rcs $@ $^
lib/intermediate/default/error.o: | lib/intermediate/default
lib/intermediate/%.o: src/%.c | lib/intermediate
$(CC) $(CFLAGS) $(EXTRA_FLAGS) -c $< -o $@
lib/optional/error.o: lib/intermediate/default/error.o | lib/optional
cp $< $@
clean:
-rm -r lib
lib/intermediate/default:
mkdir -p $@
lib/intermediate:
mkdir -p $@
lib/optional:
mkdir -p $@