source: thomson/tools/sap/Makefile@ 134f1c4

main
Last change on this file since 134f1c4 was 134f1c4, checked in by Adrien Destugues <pulkomandy@…>, 12 years ago

Add sapfs (Vital Motion modified code...)

git-svn-id: svn://localhost/thomson@21 85ae3b6b-dc8f-4344-a89d-598714f2e4e5

  • Property mode set to 100644
File size: 1.1 KB
Line 
1##########################################################################
2# targets: #
3# all (default) : build sap2 and sapfs #
4# install : build and install sap2 and sapfs in $(HOME)/emu/sap #
5# clean : delete all rebuildable files #
6##########################################################################
7
8
9################
10# object files #
11################
12
13OBJ_DIR =
14OBJ_SAP = $(OBJ_DIR)sap2.o $(OBJ_DIR)libsap.o $(OBJ_DIR)lfloppy.o
15OBJ_SAPFS = $(OBJ_DIR)sapfs.o $(OBJ_DIR)libsap.o
16
17
18##################
19# compiler flags #
20##################
21
22CC = gcc
23
24WFLAGS = -Wall -W -Werror
25
26OFLAGS = -O2
27
28CFLAGS = $(WFLAGS) $(OFLAGS)
29
30
31################
32# target rules #
33################
34
35.PHONY: all install clean
36
37all: sap2 sapfs fd2sap
38
39clean:
40 rm -f sap2 sapfs fd2sap $(OBJ_DIR)*.o
41
42sap2: $(OBJ_SAP)
43 $(CC) -s -o sap2 $(OBJ_SAP)
44
45sapfs: $(OBJ_SAPFS)
46 $(CC) -s -o sapfs $(OBJ_SAPFS)
47
48fd2sap:
49 $(CC) -s -o fd2sap fd2sap.c
50
51$(OBJ_DIR)%.o: %.c
52 $(CC) -c $(CFLAGS) -o $@ $<
53
Note: See TracBrowser for help on using the repository browser.