- Mitglied seit
- 17 Feb 2010
- Beiträge
- 225
- Punkte für Reaktionen
- 0
- Punkte
- 0
How do I create a makefile for a plain C source? (this one)
For now I have created an archive myself and am hosting it on my own site.
This is the makefile so far: (the Yahoo! IMAP proxy works okay on Freetz)
For now I have created an archive myself and am hosting it on my own site.
This is the makefile so far: (the Yahoo! IMAP proxy works okay on Freetz)
Code:
$(call PKG_INIT_BIN, 0.0)
$(PKG)_SITE:=<omitted>
$(PKG)_SOURCE:=yahooproxy.tar.gz
$(PKG)_DIR:=$($(PKG)_SOURCE_DIR)/yahooproxy
$(PKG)_BINARY:=$($(PKG)_DIR)/yahooproxy
$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/bin/yahooproxy
$(PKG_SOURCE_DOWNLOAD)
$(PKG_UNPACKED)
$(PKG_CONFIGURED_NOP)
$($(PKG)_BINARY): $($(PKG)_DIR)/.unpacked
$(MAKE_ENV) $(TARGET_CC) \
$(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
$(YAHOOPROXY_DIR)/yahooproxy.c \
-o $(YAHOOPROXY_DIR)/yahooproxy
$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
$(INSTALL_BINARY_STRIP)
$(pkg)-precompiled: $($(PKG)_TARGET_BINARY)
$(pkg)-clean:
rm $(YAHOOPROXY_DIR)/yahooproxy
$(pkg)-uninstall:
$(RM) $($(PKG)_TARGET_BINARY)
$(PKG_FINISH)
Zuletzt bearbeitet: