forked from Penguinwizzard/Source2ResourceDecompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (36 loc) · 1.54 KB
/
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
CC=gcc
CFLAGS=-c -O2 -Wall -Wextra -std=gnu99
LFLAGS=-O2 -Wall -Wextra -lm
all: s2rd panoramacompiler panorepack
panoramacompiler: panoramacompiler.o crc32.o stupidvalve.o
$(CC) $(LFLAGS) panoramacompiler.o crc32.o stupidvalve.o -o panoramacompiler
panoramacompiler.o: stupidvalve.h panoramacompiler.c
$(CC) $(CFLAGS) panoramacompiler.c -o panoramacompiler.o
panorepack: panorepack.o crc32.o stupidvalve.o fileinfo.o vcs.o
$(CC) $(LFLAGS) panorepack.o crc32.o stupidvalve.o fileinfo.o vcs.o -o panorepack
panorepack.o: panorepack.c
$(CC) $(CFLAGS) panorepack.c -o panorepack.o
s2rd: s2rd.o fileinfo.o stupidvalve.o vcs.o decompilers/SVF1.o
$(CC) $(LFLAGS) s2rd.o fileinfo.o stupidvalve.o vcs.o decompilers/SVF1.o -o s2rd
s2rd.o: s2rd.c s2rd.h
$(CC) $(CFLAGS) s2rd.c -o s2rd.o
fileinfo.o: fileinfo.c fileinfo.h
$(CC) $(CFLAGS) fileinfo.c -o fileinfo.o
stupidvalve.o: stupidvalve.c stupidvalve.h
$(CC) $(CFLAGS) stupidvalve.c -o stupidvalve.o
vcs.o: vcs.c vcs.h
$(CC) $(CFLAGS) vcs.c -o vcs.o
crc32.o: crc32.c crc32.h
$(CC) $(CFLAGS) crc32.c -o crc32.o
decompilers/SVF1.o: decompilers/SVF1.c decompilers/SVF1.h
$(CC) $(CFLAGS) decompilers/SVF1.c -o decompilers/SVF1.o
dmx/dmx.o: dmx/dmx.c dmx/dmx.h dmx/dmxb.h dmx/dmxbraw.h
$(CC) $(CFLAGS) dmx/dmx.c -o dmx/dmx.o
dmx/dmxb.o: dmx/dmx.h dmx/dmxb.c dmx/dmxbraw.c
$(CC) $(CFLAGS) dmx/dmxb.c -o dmx/dmxb.o
js: CC=emcc
js: s2rd.js
s2rd.js: s2rd.o fileinfo.o stupidvalve.o vcs.o
$(CC) $(LFLAGS) s2rd.o fileinfo.o stupidvalve.o vcs.o -o s2rd.js --embed-file bin/
clean:
rm -f *.o decompilers/*.o s2rd s2rd.js s2rd.js.mem