2 |
|
|
3 |
|
## System specific configuration |
4 |
|
@SET_MAKE@ |
5 |
+ |
SHELL = /bin/sh |
6 |
|
|
7 |
|
prefix = @prefix@ |
8 |
|
exec_prefix = @exec_prefix@ |
36 |
|
|
37 |
|
## Rules |
38 |
|
.PHONY: modules install uninstall clean distclean depend |
39 |
+ |
.SUFFIXES: |
40 |
+ |
.SUFFIXES: .c .cpp .s .o .h |
41 |
|
|
42 |
< |
default: $(APP) |
42 |
> |
all: $(APP) |
43 |
|
|
44 |
|
OBJ_DIR = obj |
45 |
|
$(OBJ_DIR):: |
62 |
|
cd Linux/NetDriver; make |
63 |
|
|
64 |
|
install: $(APP) |
65 |
< |
$(INSTALL_PROGRAM) $(APP) $(bindir) |
66 |
< |
$(INSTALL_DATA) $(APP).1 $(man1dir) |
65 |
> |
$(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP) |
66 |
> |
-$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1 |
67 |
|
$(INSTALL) -d $(datadir)/$(APP) |
68 |
< |
$(INSTALL_DATA) keycodes $(datadir)/$(APP) |
68 |
> |
$(INSTALL_DATA) keycodes $(datadir)/$(APP)/keycodes |
69 |
|
|
70 |
|
uninstall: |
71 |
< |
-rm -f $(bindir)/$(APP) |
72 |
< |
-rm -f $(man1dir)/$(APP).1 |
73 |
< |
-rm -rf $(datadir)/$(APP) |
74 |
< |
|
75 |
< |
clean: |
76 |
< |
-rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak |
77 |
< |
-rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h |
71 |
> |
rm -f $(bindir)/$(APP) |
72 |
> |
rm -f $(man1dir)/$(APP).1 |
73 |
> |
rm -f $(datadir)/$(APP)/keycodes |
74 |
> |
rmdir $(datadir)/$(APP) |
75 |
> |
|
76 |
> |
mostlyclean: |
77 |
> |
rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak |
78 |
> |
|
79 |
> |
clean: mostlyclean |
80 |
> |
rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h |
81 |
|
|
82 |
|
distclean: clean |
83 |
< |
-rm -rf $(OBJ_DIR) |
84 |
< |
-rm -f Makefile |
85 |
< |
-rm -f config.cache config.log config.status config.h |
83 |
> |
rm -rf $(OBJ_DIR) |
84 |
> |
rm -f Makefile |
85 |
> |
rm -f config.cache config.log config.status config.h |
86 |
|
|
87 |
|
depend dep: |
88 |
|
makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null |