도와주세요!!
글 수 15,339
2003.03.19 15:27:21 (*.119.8.31)
6689
수고가 많으십니다.. 또 허접한 질문올립니다..
강좌에 있는 Makefile중에서 i386과 관련된 부분은 지우고 컴파일을 했습니다. /root/mw/test폴더에 test.c와 Makefile이 들어있습니다..
다음은 Makefile 이구요..
CC = arm-linux-gcc
TOP = /root/mw/microwindows-0.89pre8_arm/src
INCLUDEDIRS += -I/usr/local/arm-linux/include
INCLUDEDIRS += -I/usr/local/arm-linux/include/microwin
LDFLAGS += -L/usr/local/arm-linux/lib
#LDFLAGS += -L/usr/lib
CFLAGS += $(INCLUDEDIRS)
CFLAGS += -Wall -O2
CCMWINLIBS += $(TOP)/lib/libmwin.a
CCMWINLIBS += $(TOP)/lib/libmwinlib.a
CCMWINLIBS += $(TOP)/lib/libmwengine.a
CCMWINLIBS += $(TOP)/lib/libmwdrivers.a
CCMWINLIBS += $(TOP)/lib/libmwfonts.a
CCMWINLIBS += $(TOP)/lib/libmwimages.a
%.o:%.c
@echo "Compiling $< ..."
$(CC) -c $(CFLAGS) -o $@ $<
TARGET = test
OBJS = test.o
SRCS = test.c
$(TARGET) : $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCMWINLIBS)
dep:
gccmakedep $(INCLUDEDIRS) $(SRCS)
clean:
rm -rf $(OBJS) $(TARGET) core
test.o: test.c /usr/local/arm-linux/include/microwin/windows.h
/usr/local/arm-linux/include/microwin/mwtypes.h
/usr/local/arm-linux/include/microwin/windef.h
/usr/local/arm-linux/include/microwin/wingdi.h
/usr/local/arm-linux/include/microwin/winfont.h
/usr/local/arm-linux/include/microwin/winkbd.h
/usr/local/arm-linux/include/microwin/winuser.h
/usr/local/arm-linux/include/microwin/winctl.h
make clean하면
[root@lap test]# make clean
make: *** 목표 `clean'를 만들 규칙이 없음. 멈춤.
이런 메시지만 나옵니다..^^;
어디가 문제인제 도통 모르겠습니다...
답변부탁드립니다...
강좌에 있는 Makefile중에서 i386과 관련된 부분은 지우고 컴파일을 했습니다. /root/mw/test폴더에 test.c와 Makefile이 들어있습니다..
다음은 Makefile 이구요..
CC = arm-linux-gcc
TOP = /root/mw/microwindows-0.89pre8_arm/src
INCLUDEDIRS += -I/usr/local/arm-linux/include
INCLUDEDIRS += -I/usr/local/arm-linux/include/microwin
LDFLAGS += -L/usr/local/arm-linux/lib
#LDFLAGS += -L/usr/lib
CFLAGS += $(INCLUDEDIRS)
CFLAGS += -Wall -O2
CCMWINLIBS += $(TOP)/lib/libmwin.a
CCMWINLIBS += $(TOP)/lib/libmwinlib.a
CCMWINLIBS += $(TOP)/lib/libmwengine.a
CCMWINLIBS += $(TOP)/lib/libmwdrivers.a
CCMWINLIBS += $(TOP)/lib/libmwfonts.a
CCMWINLIBS += $(TOP)/lib/libmwimages.a
%.o:%.c
@echo "Compiling $< ..."
$(CC) -c $(CFLAGS) -o $@ $<
TARGET = test
OBJS = test.o
SRCS = test.c
$(TARGET) : $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCMWINLIBS)
dep:
gccmakedep $(INCLUDEDIRS) $(SRCS)
clean:
rm -rf $(OBJS) $(TARGET) core
test.o: test.c /usr/local/arm-linux/include/microwin/windows.h
/usr/local/arm-linux/include/microwin/mwtypes.h
/usr/local/arm-linux/include/microwin/windef.h
/usr/local/arm-linux/include/microwin/wingdi.h
/usr/local/arm-linux/include/microwin/winfont.h
/usr/local/arm-linux/include/microwin/winkbd.h
/usr/local/arm-linux/include/microwin/winuser.h
/usr/local/arm-linux/include/microwin/winctl.h
make clean하면
[root@lap test]# make clean
make: *** 목표 `clean'를 만들 규칙이 없음. 멈춤.
이런 메시지만 나옵니다..^^;
어디가 문제인제 도통 모르겠습니다...
답변부탁드립니다...