blob: 734326ca526742fed028a4c26d6ec7d89b275c11 (
plain)
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
|
vpath %.c ../
vpath %.c ../../fmdriver
vpath %.c ../../libopna
vpath %.c ../../fmdsp
vpath %.rc ..
include ../fmplayer.mak
OBJS=$(addsuffix .obj,$(OBJBASE)) $(addsuffix .res,$(RESBASE))
CC=cl /nologo
RC=rc /nologo
CFLAGS=/W2 /Os /Oi /MT /I..\.. \
$(addprefix /D,$(DEFINES))
LIBS=$(addsuffix .lib,$(LIBBASE)) \
/link /SUBSYSTEM:WINDOWS
$(TARGET): $(OBJS)
@echo CCLD $@
@$(CC) $(LDFLAGS) /Fe$@ $(OBJS) $(LIBS)
%.obj: %.c
@echo CC $@
@$(CC) $(CFLAGS) /c $< /Fo$@
%.res: %.rc $(ICON)
@echo RC $@
@$(RC) /fo$@ $<
clean:
-del $(TARGET) $(OBJS)
|