Makefile.vc 529 Bytes
Newer Older
Josh Coalson's avatar
Josh Coalson committed
1
2
3
4
5
6
7
8
9
10
11
!include <win32.mak>

!IFDEF DEBUG
.c.obj:
	$(cc) $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX /Od /D "_DEBUG" $<
!else
.c.obj:
	$(cc) /O2 $(crelease) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX -DNODEBUG $<
!endif

C_FILES= \
Josh Coalson's avatar
Josh Coalson committed
12
	analyze.c \
Josh Coalson's avatar
Josh Coalson committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
	decode.c \
	encode.c \
	main.c

OBJS= $(C_FILES:.c=.obj)

all: flac.exe

flac.exe: $(OBJS)
	link.exe /libpath:"..\..\obj\lib" -out:../../obj/bin/$*.exe $(OBJS) libFLAC.lib

clean:
	-del *.obj *.pch
	-del ..\..\obj\bin\flac.exe