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

Last change on this file since 189 was 148, checked in by gyoung, 20 months ago

Automate building of all def files. Some minor code and makefile cleanup

File size: 666 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
12
13all: mmplayer.exe
14
15
16mmplayer.exe: mmplayer.c $(OBJECTS) $(OBJS2) makefile def.tpl
17 cmd /C $(TOOLDIR)\create_def.cmd mmplayer.def
18#Use this command to link dynamicaly
19 $(CC) $(CPPFLAGS) -I$(INC) mmplayer.c $(OBJECTS) $(OBJS2) mmpm2.lib mmplayer.def
20 rc mmplayer.rc mmplayer.exe
21
22
23clean:
24 -rm *.exe
25 -rm *.dll
26 -rm *.obj
27 -rm *.RES
28 -rm *.ini
29 -rm *.def
30
31cleaner:
32 -rm *.*~
33 -rm *.flc
34
35distribution:
36
37
Note: See TracBrowser for help on using the repository browser.