File: Makefile

package info (click to toggle)
mol 0.9.61-6
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 6,140 kB
  • ctags: 8,491
  • sloc: ansic: 50,560; asm: 2,826; sh: 458; makefile: 373; perl: 165; lex: 135; yacc: 131
file content (43 lines) | stat: -rw-r--r-- 1,180 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
40
41
42
43
#
#   Creation Date: <1999/03/28 04:20:31 samuel>
#   Time-stamp: <2001/06/21 14:30:54 samuel>
#   
#	<Makefile>
#	
#	Rules for "emulation.o" target
#   
#   Copyright (C) 1999, 2000, 2001 Samuel Rydh (samuel@ibrium.se)
#   
#   This program is free software; you can redistribute it and/or
#   modify it under the terms of the GNU General Public License
#   as published by the Free Software Foundation
#

#SUB_DIRS 	= 

O_TARGET 	= emulation.o
O_OBJS 		= $(addprefix obj/, main.o memory.o os_interface.o \
		  promif.o thread.o timer.o molcpu.o res_manager.o async.o \
		  session.o mainloop.o mainloop_asm.o misc.o )

P_TARGET2	= molrcget
O_OBJS2		= $(addprefix obj/, molrcget.o res_manager.o )

CFLAGS_EXTRA 	= $(CFLAGS_MM) -I$(SHEADERS_PATH) -I./include -I../include -msoft-float
ASMFLAGS_EXTRA	= -I../include -I$(SHEADERS_PATH)
CLEAN_FILES	= asm_offsets.h

include ../Rules.make

obj/mainloop_asm.o: asm_offsets.h

asm_offsets.h: $(SHEADERS_PATH)/asm_offsets.c
	$(CC) $(CFLAGS) $(CFLAGS_EXTRA) -Wall -S $<
	@$(RM) $@
	@echo "/* WARNING! AUTOMATICALLY GENERATED FROM 'asm_offsets.c' - DO NOT EDIT! */" > $@
	@chmod u+rw $@
	grep '^#' asm_offsets.s >> $@
	rm asm_offsets.s