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

Last change on this file since 2 was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

File size: 1.0 KB
Line 
1# Makefile
2
3include ../../../make.inc
4
5CC = gcc
6LIB_DIR = $d:/emx/lib
7#CPPFLAGS = -Ge- /Gm+ -G4 -Gl /O+ -Oc+ -Ol
8#CPPFLAGS = -O -Zomf -Zcrtdll -Zmtd -s
9CPPFLAGS = -O -Wall -Zomf -Zmt -Zsys -s
10INC = ../include -I ../../../classes/inc -I ../../../common_functions/include
11DEFS =
12PROGS =
13ODIR = .
14CPPDIR = .
15LIBDIR = ../lib
16OBJECTS = $(LIBDIR)/message.obj $(LIBDIR)/helper.obj $(LIBDIR)/menu_funcs.obj $(LIBDIR)/sys_funcs.obj
17OBJS2 = customprocs.obj playaudio.obj display.obj
18
19
20all: mmplayer.exe
21
22$(LIBDIR)/%.obj: $(COMMONSRC)/%.c
23 gcc -c -Wall -o$@ -Zomf -I$(INC) $<
24
25%.obj: %.c
26 gcc -c -Wall -o$@ -Zomf -I$(INC) $<
27
28mmplayer.exe: mmplayer.c $(OBJECTS) $(OBJS2) makefile
29#Use this command to link dynamicaly
30 gcc $(CPPFLAGS) -I$(INC) mmplayer.c $(OBJECTS) $(OBJS2) -los2me mmplayer.def
31 rc mmplayer.rc mmplayer.exe
32
33
34clean:
35 -rm *.exe
36 -rm *.dll
37 -rm *.obj
38 -rm *.res
39 -rm *.ini
40
41cleaner:
42 -rm *.*~
43 -rm *.flc
44
45distribution:
46
47
Note: See TracBrowser for help on using the repository browser.