source: trunk/classes/mm-progs/MMPlayer/makefile

Last change on this file was 191, checked in by gyoung, 14 months ago

Make pmprintf.lib easy to select when needed

File size: 773 bytes
Line 
1# Makefile
2
3include ../../../make.inc
4include ../mmprog.inc
5
6OBJECTS = $(LIBDIR)/message.obj \
7 $(LIBDIR)/helper.obj \
8 $(LIBDIR)/menu_funcs.obj \
9 $(LIBDIR)/sys_funcs.obj
10OBJS2 = customprocs.obj playaudio.obj display.obj
11
12PMPRINTF = 0
13ifdef PMPRINTF
14LIBS = mmpm2.lib pmprintf.lib
15else
16LIBS = mmpm2.lib
17endif
18all: mmplayer.exe
19
20
21mmplayer.exe: mmplayer.c $(OBJECTS) $(OBJS2) makefile def.tpl
22 cmd /C $(TOOLDIR)\create_def.cmd mmplayer.def
23#Use this command to link dynamicaly
24 $(CC) $(CPPFLAGS) -I$(INC) mmplayer.c $(OBJECTS) $(OBJS2) $(LIBS) mmplayer.def
25 rc mmplayer.rc mmplayer.exe
26
27
28clean:
29 -rm *.exe
30 -rm *.dll
31 -rm *.obj
32 -rm *.RES
33 -rm *.ini
34 -rm *.def
35
36cleaner:
37 -rm *.*~
38 -rm *.flc
39
40distribution:
41
Note: See TracBrowser for help on using the repository browser.