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

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

Make pmprintf.lib easy to select when needed

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